By JavaScriptSource Staff on Oct 13, 2006
Obtain the contents of an XML element and convert it to text. This script is great for using with Ajax-type applications, when it’s neccessary to send back the contents of an element to the server without knowing what’s there.

The JavaScript Source: Snippets : getXML

Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!