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

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

Note that if the DOM was initially created from an XML source document any attributes that are part of the DOM will be lost when outputing the DOM in JSON. This occurs because JSON has no concept of attributes for an element.

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.