- Code: Select all
<w:p w14:paraId="710890F1" w14:textId="3CDF1A39" w:rsidR="00751418" w:rsidRPr="00751418" w:rsidRDefault="00751418" w:rsidP="000F57DD">
<w:pPr>
<w:spacing w:before="40" w:after="40"/>
<w:rPr>
<w:rFonts w:eastAsia="Times New Roman" w:cs="Times New Roman"/>
<w:sz w:val="18"/>
<w:szCs w:val="18"/>
</w:rPr>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_GoBack"/>
<w:bookmarkEnd w:id="0"/>
</w:p>
I want to find the paragraph properties available inside the following paragraph. However when trying to display the paragraph children, only the bookmarkStart and bookmartEnd tags are available. The corresponding code, omitting the paragraph retrieval, is as follows:
- Code: Select all
P paragraph = (P) par;
String paragraphId = paragraph.getParaId();
if (paragraphId.equalsIgnoreCase("710890F1")) {
for(int i=0; i<paragraph.getContent().size(); i++) {
Log.d("DOCX", "String from object: " + ((JAXBElement<?>) paragraph.getContent().get(i)).getName());
}
}
Logs are as follows:
- Code: Select all
String from object: {http://schemas.openxmlformats.org/wordprocessingml/2006/main}bookmarkStart
String from object: {http://schemas.openxmlformats.org/wordprocessingml/2006/main}bookmarkEnd
What's the reason for this? Note that I am using version 6.1.1 as this is an Android deployment.
Thank you.