URGENT : Changing the value of a XML node (Element)

admin

Administrator
Staff member
Hey,I am using java 2 with the oracle v2 xml parser.My problem :I have a parsed XML message, resulting in a refenece to a Document object.Now I want to walk through all the nodes (recursivly) and format or changethe value of the nodes. The result should be an xml with the same structurebut with slightly changed data. The problem is when I do aElement.setNodeValue call in java, I get an exception saying that thenodevalue could not be changed. Doing the same but with an attribute of thenode is successfull.I am encountering the same problem when I try to build a new XML sturcturewith the DOM. Working with attributes, no problem, but when I try to set thevalue of the node, I get always the same error.Does someone knows what the problem could be ? Could someone point me tosome java xml samples where they create an xml with the dom objects ?Thanks for reading,Best regards,Frank DevliegherPlease respond to mailto:[email protected] andmailto:[email protected]
 
Back
Top