An lz.DataElement represents a node a in a hierarchical dataset. An lz.DataElement can contain other lz.DataElements, or lz.DataText, which represents a text node. See the example on lz.DataNodeMixin.
| Name | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
DOCUMENT_NODE
|
int | "9" | readonly | |
| constant for LZX DOM document root node type | ||||
ELEMENT_NODE
|
int | "1" | readonly | |
| constant for LZX DOM data element node type | ||||
TEXT_NODE
|
int | "3" | readonly | |
| constant for LZX DOM data text node type | ||||
whitespaceChars
|
Dictionary | readonly | ||
Methods
Class Methods
| makeNodeList() |
|---|
| Parameter Name | Type | Description |
|---|---|---|
| count | int | how many nodes to create. |
| name | String | the name for each node |
| stringToLzData() |
|---|
| 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 |
| valueToElement() |
|---|
Events
Copyright © 2002-2008 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.