Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDOMXML::setJSONParser ( p6IJSONReader pReader)
pure virtual

The caller can use their own implementation of the p6IJSONReader interface.

That implementation can be used to parse JSON or any other data format that can be mapped into JSON calls (thus mapping any compatible format into a DOM tree).

Note that this function will set a new p6IJSONContentHandler by calling the pReader->setContentHandler() method. This new content handler is internal to the DOM object and translates the JSON calls into a DOM tree. It is assumed that all other handler (e.g., error handler) are set by the creator of the pReader.

Parameters
pReader[ in ] An interface pointer of type p6IJSONReader created by the caller.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidStateP6DOMXML_USERPARSER was not set in initialize()
P6R::eInvalidArgpReader is NULL.