lz.DataNode is deprecated, all methods and constants have been moved to lz.DataElement
![]() |
This class is deprecated |
|---|---|
Use LzDataElement.ELEMENT_NODE instead. The methods and constants in this class are deprecated
|
| Name | Type (tag) | Type (js) | Default | Category | |||
|---|---|---|---|---|---|---|---|
DOCUMENT_NODE
|
int | "9" | readonly | ||||
|
|||||||
ELEMENT_NODE
|
int | "1" | readonly | ||||
|
|||||||
TEXT_NODE
|
int | "3" | readonly | ||||
|
|||||||
Methods
Class Methods
| stringToLzData() |
|---|
![]() |
This method is deprecated |
|---|---|
Use LzDataElement.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 |
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.