XdmNode is designed to represent nodes used as the input or output of queries, transformations, and XPath expressions; it's not designed primarily for direct manipulation in Java. (For that, use something like DOM, JDOM, or XOM, and wrap those nodes in an XdmNode when necessary.)
Pardon me if I’m asking something stupid.
I’m trying to append a child element to XdmNode. Any suggestions?