It doesn't matter what parser you use. The input source scheme is
independent of the parser used. Just use the DOMParser instead of the SAX
parser. Do everything else the same way.

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]



"Eric Ulevik" <[EMAIL PROTECTED]> on 02/03/2000 04:04:29 PM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Re: Parsing XML Strings



From: Michael Mason <[EMAIL PROTECTED]>
> > What is the right way to parse a XML string using Xerces-c?
> > I would like to process XML from char*, std::string, wchar_t*.
>
> You can use MemBufInputSource like this:
>
> SAXParser *parser = new SAXParser();
> MemBufInputSource *memBufIS = new MemBufInputSource((const XMLByte
> *)xml_buf, strlen(xml_buf), "My XML Data", false);

Is there any way of parsing a XML string using Xerces-c and
DOM rather than SAX?





Reply via email to