Returning IXMLDOMNodeList without using DOMDocument

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi there,
Im currently looking into a problem with some legacy VB6 ActiveX objects that implement methods called by the SOAP toolkit.
They all return complex types, the return value of which is IXMLDOMNodeList. The problem Im seeing is that the code is sometime exhausting the process memory because the code loads the whole XML response into a DOMDocument object and calls SelectNodes on
it to get the IXMLDOMNodeList. If the response is large (say, >70MB), the DOMDocument.LoadXml call fails with "Not enough storage is available to complete this operation"
What Im wondering is whether theres a way to build the response object without having to load the XML into a DOMDocument object. Is there a way of returning an IXMLDOMNodeList using the SAX parser, for example? The code is very old so the fewer changes,
the better!
Thanks in advance. <hr class="sig Chris McKeown MBCS CITP<br/>
MCP | MCTS | MCDST | MCSA | MCSE | MCITP:EA

View the full article
 
Back
Top