I am using SAXON JAVA API.
Can someone tell me a way how to append a Child Element to an existing XdmNode?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The XdmNode object is primarily designed to represent the input or output of a query, stylesheet, or XPath expression; it’s not designed as an interface like DOM or JDOM for programmatic construction of XML trees within your Java application. Probably the best way to add one XdmNode C as a child of another XdmNode P is to write the query
and then execute it from your Java application, supplying the two nodes as query parameters.