fromVar
Convert a var to a CdmNode (default formatting).
Creates a new CdmNode tree from a var value. Object vars that contain a #name key are converted to TAG nodes; other objects become CdmNode objects.
Parameters
v | The var value to convert. |
Returns
A CdmNode representing the var value.
Convert a var to a CdmDocument with the given format.
Parameters
v | The var value to convert as the document root. |
fmt | The document format to set. |
Returns
A CdmDocument with the specified format and converted root node.