Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Bad load Performance XML

From: TI@-----------.---------.---
To: NULL
Date: 11/2/2004 9:00:00 AM
How do I improve the load performance speed with my xml load procedure.? The 
xml file size is 29943.07KB. 

----This is how I load the xml and xsl in HTML.---

function init(){
 
// Check client  for Msxm12 version      
try {
objSrcTree = new ActiveXObject("Msxml2.DOMDocument.4.0");
}
catch (err) { 
// Can't create Automation object, must pop up a window to load MSXML 4 SP2 
msxml4Pop();
}
        // Load xml and xsl files
         objSrcTree = new ActiveXObject("Msxml2.DOMDocument.4.0");
         objSrcTree.async = false;
         objSrcTree.load('DOLXMLWEBOUT.xml');
         
         // Check for errors in loading xml
         
         if (objSrcTree.parseError != 0) {
         output.innerHTML = objSrcTree.parseError.reason + "<BR>"
         output.innerHTML += objSrcTree.parseError.url + "<BR>"
         output.innerHTML += objSrcTree.parseError.errorCode + "<BR>"
         output.innerHTML += objSrcTree.parseError.filepos + "<BR>"
         output.innerHTML += objSrcTree.parseError.line + "<BR>"
         output.innerHTML += objSrcTree.parseError.linepos + "<BR>"
         }

         objXSLT=new ActiveXObject('MSXML2.FreeThreadedDOMDocument.4.0');
         objXSLT.async = false;
         objXSLT.load('DOLWMDDXSL.xsl');

         objCache   = new ActiveXObject("Msxml2.XSLTemplate.4.0");
         objCache.stylesheet = objXSLT;
         
      }
      
      function search()
      {
         // Search the value of the entryfield
         var objXSLTProc = objCache.createProcessor();
         objXSLTProc.input = objSrcTree;
         // Pass the entryfield value to the xsl file
         objXSLTProc.addParameter("nameSearchValue", ORDER.value);
         
         
result=objSrcTree.selectNodes("//REQUISITION/ORDNBR[.='"+ORDER.value+"']")
         if (result.length > 0) { 
         // The results count of the search
         doPopupcnt();
         objXSLTProc.transform(); 
         output.innerHTML = objXSLTProc.output; 
         } else { 
         // Pop up letting the user know that the search didn't find anything
         doPopup(); 
         objXSLTProc.transform(); 
         output.innerHTML = objXSLTProc.output; 
                                     
         } 

     }    
         
   </SCRIPT>


-- XML---  





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent