file - Parse XML from String using XPath in Bada? -


I have read the tutorial in BADA. But I do not want to use a file. I need to parse my XML from the OSP :: base :: string. Any ideas which methods should be used I have so far changed the

  xpathCtx = xmlXPathNewContext (doctor); If (xpathCtx == faucet) {AppLog ("Error: Unable to create new XPath reference"); XmlFreeDoc (doc); Return (E_IO); } With  
  xpathCtx = (xmlXPathContextPtr) xmlXPathNewCString ("& lt;? Xml version = \" 1.0 \ "encoding = \" ISO - 8859- 1 \ "? Title = lang = \" en \ "XQuery kick start  gt; lang = \" en \ "& gt; learn xml & lt ; / Title & gt; ");  

But the emulator bus stops

Thank you.

Your code is incorrect because you have xmlxpathObjectPtr to XmlXPathContextPtr: they are different structures.

The code in the tutorial is correct, just use

xmlDocPtr xmlReadDoc (const xmlChar * cur, const char * URL, const char * encoding, int options)

xmlReadFile (..)

instead of

to understand how to use this function Have a look at the examples of Docs and LinksXLL 2 website.


Comments