TextContentIterator return processing instructions?
Posted: Wed Apr 08, 2015 12:46 pm
Hi,
I'm using Oxygen Author 16.1, build 2015012213 with code like this:
Other than the text, I also get back this:
obviously it comes from the PI in my XML:
Is the TextContentIterator supposed to return PIs? I'd like to have the text without PIs.
Regards
Daniel
I'm using Oxygen Author 16.1, build 2015012213 with code like this:
Code: Select all
AuthorDocumentController docController = authorEditorPage.getDocumentController();
AuthorDocument authorDocumentNode = docController.getAuthorDocumentNode();
TextContentIterator textContentIterator =
docController.getTextContentIterator(0, docController.getAuthorDocumentNode().getEndOffset());
while (textContentIterator.hasNext()) {
System.out.println(textContentIterator.next().getText());
}
Code: Select all
xml-stylesheet type="text/css" href="/lt/rules.css" title="..."
obviously it comes from the PI in my XML:
Code: Select all
<?xml-stylesheet type="text/css" href="/lt/rules.css" title="..."?>
Is the TextContentIterator supposed to return PIs? I'd like to have the text without PIs.
Regards
Daniel