i m reading a .docx Dokument where a SdtRuns are inside or the P.
The problem is i gain a JAXBElement instead. And i can not convert it to the required type nevent if jax.getDeclaredType().equals(SdtRun.class) is TRUE.
Body body = wmlDocumentEl.getBody();
JAXBElement jax = null;
for (Object o: body.getEGBlockLevelElts()){//Body
if (o instanceof P){
for (Object o1:((P) o).getParagraphContent()){//P
if(o1 instanceof R){
for(Object o3: ((R) o1).getRunContent()){
if(o3 instanceof Text){
System.out.println(((Text) o3).getValue());
}
}
};
if (o1 instanceof ...