I'm using javax.xml.xpath to read nodes out of a XML-DOM and to create Java-Objects from the read data. After changing the data of these objects and perhaps creating new objects, I would like to write them back to the XML-DOM. So I was wondering if it is possible to use xpath to also create nodes at specific positions in the XML-DOM. I am not sure if xpath is designed to write to DOM because its a "Query"-Language. But on the other hand SQL is also a query-language and is able to write data to databases.
So my general question is: Is it possible to create DOM-Nodes with XPaths?