2 Replies Latest reply on May 1, 2013 10:22 PM by Andy_Bat1

    Is it possible to use external libraries in the parsing xml ?

    Andy_Bat1 Level 1

      Hi, all !

      Is it possible to use external libraries or other ways for parsing xml files ? In the example is part of script which  using ActiveXObject to parsing url (receive xml file).

       

       

       

      function getXMLDocument(url)
      {
          var xml;
          if(window.XMLHttpRequest)
          {
              xml=new window.XMLHttpRequest();
              xml.open("GET", url, false);
              xml.send("");
              return xml.responseXML;
          }
          else
              if(window.ActiveXObject)
              {
                  xml=new ActiveXObject("Microsoft.XMLDOM");
                  xml.async=false;
                  xml.load(url);
                  return xml;
              }
              else
              {
                  alert("Not loaded");
                  return null;
              }
      }