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
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. |