I am trying to manipulate an xml file using java. I identify the node I want to manipulate with javax.xml.xpath and then alter its content, add children or add attributes. This