Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXMLNode2::outputSubTreeInJsonML ( p6IDataStream pOutput,
P6DOMCHARSET  charSet 
)
pure virtual

Write the contents of the subtree rooted at this node in JsonML format (see http://www.jsonml.org).

JsonML is different from JSON in that is supports the notion of an element's attributes as in XML. As such, if the DOM was initially created from an XML source document any attributes that are part of the DOM will be preserved when outputing the DOM in JsonML.

Parameters
pOutput[ in ] Data stream object to write the DOM out to.
charSet[ in ] How to encode the generated JSON
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgpOutput is NULL.
P6R::eNoMemoryInsufficient memory to output tree.