Hi,

Is it possible to parse a DOM tree via a SAX parser? I can see that I cannot just parse the DOM tree directry, but after some investigation, I think I can convert my DOM document into a XMLCh string.

Using a DOMWriter, I writeNode the root DOM Node to a MemBufFormatTarget, and I use this to writeString into a long XMLCh buffer.

I also believe that the SAX2XMLReader can take an InputSource in its constructor, and this includes a MemBufInputSource. However, the MemBufInputSource takes an XMLByte * for its constructor, not an XMLCh which writeString for MemBufFormatTarget gives.

Is there a way to bridge this gap? Do I use the XMLTransCoder to convert my XMLCH document into XMLByte, or is there some other way to do this? As well, the documents that I have been creating are large, around 10 MB, so would conversion be a performance hit? Is there a way I can directly output into XMLByte from writeString? I've been trying to do research on this "encoding" property, but I haven't been able to find enough for me to understand this...

Any help would be greatly appreciated!

Terry Stoneman

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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



Reply via email to