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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to intialize() must be made before calling this funciton. |
P6R::eInvalidArg | pOutput is NULL. |
P6R::eNoMemory | Insufficient memory to output tree. |