Note that DOMWriter is not available in 1.6.0. If I recall correctly, you have to write your own serializer. I think there was an example called DOMPrint.
However, this begs the question: is it within the realm of possibility to upgrade to something reasonably current? You'll have more functionality and get better support (because most people are using newer versions, and tend to know about what they're using). > -----Original Message----- > From: Adam Heinz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 11:26 AM > To: [EMAIL PROTECTED] > Subject: RE: xerces 1.6.0 questions > > > Here is what have been using for Xerces 2.0.0 through 2.3.0: > > // Create serializer. > DOMImplementation* pImpl = > DOMImplementationRegistry::getDOMImplementation(_X("LS")); > DOMWriter* pWriter = ((DOMImplementationLS*)pImpl)->createDOMWriter(); > pWriter->setEncoding(_X("UTF-8")); > > // Save document to disk. > XMLCh* psxPath = NULL; // Wherever you want output to go. > LocalFileFormatTarget rFile(psxPath); > pWriter->writeNode(&rFile, *pDoc); > > Adam Heinz > Development Consultant > > Exstream Software > 2424 Harrodsburg Road, Suite 200 > Lexington, KY 40503 > (317) 879-2831 > [EMAIL PROTECTED] > > connecting with the eGeneration > www.exstream.com > > -----Original Message----- > From: Hieu Bui [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 10:12 AM > To: [EMAIL PROTECTED] > Subject: RE: xerces 1.6.0 questions > > > Hi, > > Thanks for the response. I have the full distribution and > have tried looking at the sample apps but couldn't find what > I needed. Do you have a suggestion for where to look in > particular for an answer to question #2? > > TIA, > > --Hieu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
