virtual P6R::P6ERR P6R::p6IXMLNode::outputSubTreeInJSON ( p6IDataStream pOutput,
P6DOMCHARSET  charSet 
) [pure virtual]

Write the contents of the subtree rooted at this node in JSON format.

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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.