I have this XML:
<school>
<name>Big school</name>
<located>somewhere</located>
<age>163</age>
<students>53354</students>
</school>
I want to add new element to this XML and display it in a browser. I can use DOM methods to add new element but I do not know how to display it in a browser. I found this http://www.ehow.com/how_5941838_display-xml-javascript.html but I did not make it work.
I want to see something like this in a browser:
<school>
<name>Big school</name>
<located>somewhere</located>
<age>163</age>
<students>53354</students>
<teachers>18752</teachers>
</school>
Can i do this in some simple way?