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

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

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

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

In addition, this function will try to set the following SAX features via the pReader->setFeature() call: "http://xml.org/sax/features/namespaces", "http://xml.org/sax/features/namespaces-prefixes". If the provided SAX parser is being used to parse non-XML content then these setFeature calls can be ignored.

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