ProcessingInstruction.nextSibling as XMLNode
This is inherited from the XMLNode object.
The node that is the immediately following sibling of this node, if any.cts.doc("example.xml").root.firstChild.nextSibling
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.