| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
XMLNode | +--xp.data.XPNode
Field Summary | |
| public static | nodeFactory: XML |
| public | parent: Object |
| A parent or host object to route events to | |
Method Summary | |
| __resolve ( id ) | |
| internal resolver | |
| public | addTreeNode ( node: XMLNode ): XMLNode |
| Appends a child node at tp the parentNode. | |
| public | addTreeNodeAt ( index: Number, node: XMLNode ): XMLNode |
| Adds a child node at a specified location on the parent node | |
| public static | filterNodes ( nodes: Array, filter: String ): Array |
| Select a set of nodes based on an attributes value | |
| public | getDepth ( node: XMLNode ) |
| Returns the number of levels between the specifed child node and this node | |
| public | getDocumentElement ( ) |
| Returns the document element of the current document | |
| getFieldValue ( field: String ): Object | |
| Get the value of the specified child node or attribute | |
| public | getNodeIndex ( ): Number |
| Returns the index a node in its parentNodes childNodes array. | |
| public | getRootNode ( ): XMLNode |
| Returns the root of document | |
| public | getTreeNodeAt ( index: Number ): XMLNode |
| Returns the specified child of a node. | |
| getValue ( ) | |
| Get the value of a node | |
| public static | Initialize ( ): Boolean |
| mixin the properties to the obj | |
| public | removeAll ( ): Void |
| Removes all the node’s descendants. | |
| public | removeTreeNode ( ): XMLNode |
| Removes a node and all the node’s descendants from the node’s parent. | |
| public | removeTreeNodeAt ( index: Number ): XMLNode |
| Removes a node and all the node’s descendants from the index position of the child node in its parentNode | |
| public | routeEvent ( e: Event ): Void |
| Routes an event to the parent if the routeEvents property is true. | |
| public | selectNodes ( xpath: String ): Array |
| Select nodes using an xpath statement | |
| public | selectSingleNode ( xpath: String ): Array |
| Select a node using an xpath statement | |
| public static | selectXMLNodes ( xmlnode, path: Array ): Array |
| Select nodes based on the given path | |
| setFieldValue ( field: String, v: Object ): Void | |
| Set the value of the specified child node or attribute | |
| setValue ( v ) | |
| Set the value of a node | |
| public static var nodeFactory: XML |
| public var parent: Object |
| A parent or host object to route events to |
|
| internal resolver |
|
| Appends a child node at tp the parentNode. Appends a child node to the parent node | |||
|
|
| Adds a child node at a specified location on the parent node Adds a child node at the specified location in the parent node | ||||||
|
|
| Select a set of nodes based on an attributes value | ||||||
|
|
| Returns the number of levels between the specifed child node and this node If the specified node is not a child of this than -1 is return |
|
|
| Returns the document element of the current document The document may be an XML or XMLNode object. If the document is an XML object the doc element is the first child otherwise if it is an XMLNode it is document itself. |
|
| Get the value of the specified child node or attribute |
|
| Returns the index a node in its parentNodes childNodes array. Returns the index a node in its parentNodes childNodes array. |
|
|
| Returns the root of document Returns the root of a document. The root of a document has one child element, the document element. RootNode is also used to define the root of a tree when binding to a node in an XML document. In that case RootNode and DocumentElement are the same. Note the root element is the firstChild of root. |
|
|
| Returns the specified child of a node. Returns the specified child node of the node. | |||
|
|
| Get the value of a node |
|
| mixin the properties to the obj |
|
| Removes all the node’s descendants. Removes all child nodes |
|
| Removes a node and all the node’s descendants from the node’s parent. Removes a child node from its parent node |
|
|
| Removes a node and all the node’s descendants from the index position of the child node in its parentNode Appends a child node to the parent node | |||
|
|
| Routes an event to the parent if the routeEvents property is true. | |||
|
|
| Select nodes using an xpath statement | |||
|
|
| Select a node using an xpath statement | |||
|
|
| Select nodes based on the given path | ||||||
|
|
| Set the value of the specified child node or attribute |
|
| Set the value of a node |