If we had this XML document stored in a string called txt, we could load it into an XML object variable called order, by writing the following JavaScript statement:
var order = new XML(txt)
Or we could assign the XML text directly to the XML object variable: