how to modify a node

admin

Administrator
Staff member
I am using the DOMParser class to parse an XML string, and using DOMParserto get the XMLDocument object (DOMParser.getDocument();). I am tryingto get the text values in some of the nodes to format them. For example,suppose one of the nodes has a phone number as its textual data. I maytry to format the phone number by inserting dashes where appropriate, andinclude the new formatted phone number in the old number's place. However,it is not allowing me to modify the text values in the nodes, giving me a"Node is not modifiable" error. Is there any way around this? Any suggestionsare greatly appreciated.
 
Back
Top