I am unable to parse a string of xml using xerces c++ 1.4.0

Can anyone please show a code snippet to show me how this is done.

I am trying to convert the following code snippet from Java to c++.


1       String xml = "<?xml
version=\"1.0\"?><sample><addressid>1234556</addressid><aNode>someValue</aNo
de></sample>";
2       SAXParser parser = new SAXParser();
3       parser.setDocumentHandler(new CountSax());
4       parser.parse(new InputSource(new
java.io.ByteArrayInputStream(xml.getBytes())));



I have had success parsing an xml file but cannot get line 4 of above code
snippet, converted to c++ without causing a run-time fatal error in the
function 'parser.parse()' of SAXParser.

Can anyone please help or tell me where I can see an example.


Thanks for your time and effort.
Iain G.





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

Reply via email to