DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15262>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15262

writeNode Performance

           Summary: writeNode Performance
           Product: Xerces-C++
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Dear Sirs, 
on some computers the function DOMWriterImpl::writeNode lasts 30 times longer 
than on other computers. 
The problem occurs on computers with 350 MHz processors. The resulting XML-file 
is equal.  

This is how we call the function:
_strconv wName("Core");
DOMImplementation *pImp = DOMImplementationRegistry::getDOMImplementation
(wName);

DOMWriter* pDOMWriter = CE_NULL;

if(pImp)
   pDOMWriter = ((DOMImplementation*)pImp)->createDOMWriter();

if(pDOMWriter)
{
  pDOMWriter->setErrorHandler((DOMErrorHandler*)m_pErrHandler);

  _strconv wNewLine("\r\n");
  pDOMWriter->setNewLine(wNewLine);
  _strconv wEncoding("ISO-8859-1");
  pDOMWriter->setEncoding(wEncoding);

  if (pDOMWriter->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true))
    pDOMWriter->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);

  XMLFormatTarget *pFile = new LocalFileFormatTarget(m_szConfigName.GetBuffer 
(0));
  
  pDOMWriter->writeNode(pFile, *m_pRoot);
  delete pFile;

  pDOMWriter->release();
} 

We look forward to hearing from you,
Christoph Igler

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

Reply via email to