getParent() result on root node
Posted: Wed Jun 23, 2021 12:55 pm
Hello,
I work with the version 22 of Oxygen SDK.
We have noticed this in the javadoc :
And then use the method getParent() on the rootNode; It provides an AuthorDocument and not null has expected.
Is it normal ?
Did we miss an information or the javadoc is not up to date ?
I have checked the release notes on your website (https://www.oxygenxml.com/xml_editor/whatisnew22.1.html) and i did not find any changes on that part.
Regards,
Isabelle
I work with the version 22 of Oxygen SDK.
We have noticed this in the javadoc :
But we get the root element like this :getParent
AuthorNode getParent()
Returns:
The AuthorNode representing the parent of this element, or null if this is the root element.
Code: Select all
AuthorNode rootNode = authorAccess.getDocumentController().getNodeAtOffset(authorAccess.getEditorAccess().getCaretOffset());
Is it normal ?
Did we miss an information or the javadoc is not up to date ?
I have checked the release notes on your website (https://www.oxygenxml.com/xml_editor/whatisnew22.1.html) and i did not find any changes on that part.
Regards,
Isabelle