I am using the following code to write a DOMDocument to disk.  It is taking a very 
long time to write (a 13KB file is taking about 2.5 minutes) and it is driving my hard 
drive crazy (it is constantly doing something).

I obviously am doing something wrong here, can someone point me in the right direction?

LocalFileFormatTarget* pXMLFormatTarget;

DOMImplementation* pDOMImplementation = 
DOMImplementationRegistry::getDOMImplementation(L"LS");
if (!pDOMImplementation) 
        return false;
                
DOMWriter* pDOMWriter = ((DOMImplementationLS*)pDOMImplementation)->createDOMWriter();
if (!pDOMWriter) 
        return false;
                
pXMLFormatTarget = new LocalFileFormatTarget( m_strTargetSpec );
                
if (!(pDOMWriter->writeNode(pXMLFormatTarget, *pDomDocument)))
        return false;
                
pDOMWriter->release();

-dh


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to