So, I wrote this script that searches for specific nodes in the XML file, deletes it and puts a new node in it ... however, the new node is displayed like this:
<PrintQuestion id="17767" type="pickOne">
<Standards><Standard value="CA.MATH-6-6-20" state="CA" grade="3" subject="MATH"/></Standards><References>
<PassageRef id="1892"/>
</References>
I tried using the format $ xml-> Output = true; but it did nothing. I load the dom object from the XML file and save it back to the same file upon completion.
source
share