> Hi guys, > > Does anybody know how can I parse XML string instead of a file? > Iâve seen from the samples that MemParse sample is doing this exactly. But it uses another parser (SAX2Parser). I need a SAX2XMLReader parser.
In the future, please post Xerces-C questions to the Xerces-C mailing list, not to the Xalan-C user list. The sample actually uses a SAXParser. There is no such thing as a SAX2Parser in Xerces-C. If you look at the parse() member functions of SAXParser and SAX2XMLReader, you will see both accept an InputSource, so you can use a MemBufferInputSource with SAX2XMLReader. Dave
