lz.DataNode
The base class for a node of hierarchical data.

lz.DataNode is deprecated, all methods and constants have been moved to lz.DataElement

JavaScript: lz.DataNode
extends lz.Eventable »
[Caution] This class is deprecated
Use LzDataElement.ELEMENT_NODE instead. The methods and constants in this class are deprecated

Class Attributes

Name Type (tag) Type (js) Default Category
DOCUMENT_NODE   int "9" readonly
 
[Caution] This attribute is deprecated
Use LzDataElement.DOCUMENT_NODE instead
ELEMENT_NODE   int "1" readonly
 
[Caution] This attribute is deprecated
Use LzDataElement.ELEMENT_NODE instead
TEXT_NODE   int "3" readonly
 
[Caution] This attribute is deprecated
Use LzDataElement.TEXT_NODE instead

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Class Methods

stringToLzData()
lz.DataNode.stringToLzData(str : String, trimwhitespace : boolean, nsprefix : boolean);
[Caution] This method is deprecated
Use LzDataElement.stringToLzData
Converts string to XML data.
Parameter Name Type Description
str String A valid string of XML. If the string is simple text, or that there isn't a single root element, this function returns null. In cases where the string is an invalid but well formatted snippet of XML, this function will close any tags to make for a valid XML document
trimwhitespace boolean if true, text nodes have whitespace trimmed from start and end.
nsprefix boolean if true, preserve namespace prefixes on node names and attribute names.
Returns Type Description
  lz.DataElement An LzDataElement which is the top of the hierarchy generated from the string

Events

Events inherited from lz.Eventable

ondestroy