parsing xml string

hi,

String stringXml="<?xml version='1.0' ?><methodcall xmlns='http://comnet.com/namespaces/wcm/appint/integration/1.0'><method&g t;isLoggedOn</method><parameters/></methodcall>";

if i want to pass this string for parsing iam doing like below..but iam getting error that no protocol:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.parse(stringXml);
regards,
[520 byte] By [sampathreddyv2000] at [2007-11-19 7:42:53]
# 1 Re: parsing xml string
Hi,

Try this with SAX API:

...
SAXParser* parser = new SAXParser();

...

MemBufInputSource memBufInputSource((XMLByte*)xmlStringToValidate, strlen(xmlStringToValidate), "foo", false);

try {

parser->parse(memBufInputSource);

...

Regards,

Rui Santos
sardinhasantos at 2007-11-10 3:27:40 >