Here are the details:
I am using xerces-c, DOM parser (DOMParser* DP = new DOMParser);
I have a string (that has xml nodes) like: std::string strXml(pOrg)
here char*pOrg .
I have to parse this string as a DOM tree and get hold of root node. So I am doing:
Parser->parse(pOrg)
DOM_Document doc = Parser->getDocument();
But I don't get any elements/ nothing is retrieved.
What should I do? Please detail out, thanks so much.
note: I don't have xml file or a way to pass system id..I have to pass string.
>Which parser are you using? How have you set it up (via set___() methods)?
>What are the contents of strXml? Does the document you are parsing really >exist? We need way more details. > >Matt > > >On Mar 11, pankaj bavishi wrote: ----------------- > > > > > > > > >I have a xml file to parse. > > > >I am using: > > > >parser->parse(strXml.c_str()); > > > >DOM_Document doc = parser->getDocument(); > > > >But it returns 0 elements. why? > > > > > > > > > > > >_______________________________________________________________________________ > >Send and receive Hotmail on your mobile device: Click Here > >--------------------------------------------------------------------- To > >unsubscribe, e-mail: [EMAIL PROTECTED] For > >additional commands, e-mail: [EMAIL PROTECTED] > > > >-- >Matt Leinhos >[EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >Chat with friends online, try MSN Messenger: Click Here
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]