/ **
* Recursive method read XML all data (including attribute values) to array
*
* /
Function XML2JAVAScript (XML_Name, DATA)
{
// --------------------------------------------- -----
// | Establish msxml.DomDocument |
VAR XML_DOC = New ActiveXObject ("msxml.domdocument");
XML_Doc.async = false;
XML_Doc.Load (XML_NAME);
// --------------------------------------------- -----
Var obj = xml_doc.documentelement;
Var Data_Obj = Data;
Eval (Data_Obj "= new object ();");
_GETXML (Obj, Data_Obj)
}
/ *** Internal function * / function _getxml (obj, data_obj) {var node_count = obj.childNodes.Length; if (node_count == 0) {// If there is no child node, then return return;} evAl (Data_Obj " .childnodes = new array (); "); evAl (data_obj " ._childnodes = new array (); "); for (var i = 0; i // Property VAR attribute_count = obj.childnodes (i) .attributes.length; eval (data_obj ".childnodes [i] .attributes = new array ();"); // Attribute array EVAL (Data_Obj ".childnodes [ I] ._ attributes = new array (); "); // Property Cache array for (var j = 0; j