::class xmlNode public

CLASS: xmlNode

The xmlNode class is the base class for real nodetypes such as elementNode and textNode.

Methods that make no sense or that are just plain impossible to implement in this base class, because the
implementation is only possible in a subclass will raise syntax error 93.963 - Unsupported or not implented method.

Methods that have a default value (e.g. .nil) will be intialized to that default value and need to be overridden in
the appropiate subclass.

Definition at line 295 of xmlDOM.cls

Public Class Methods

number - unique identifier for the new xmlNode getId ()

Public Methods

node - the node appended appendChild (child)
nodes - A xmlNodeList that contains all the children of this node. children ()
node - the duplicated node cloneNode (deep=.false)
number - Position relatively to the reference node compareDocumentPosition (other)
child - The first child of this node firstChild ()
domObject - An object which implements the specialized APIs or .nil getFeature (feature, version)
userdata - the DOMUserData associated, or .nil if there was none getUserData (key)
boolean - .true if this node has any attributes, .false otherwise hasAttributes ()
boolean - .true if this node has any children, .false otherwise hasChildNodes ()
  init ()
node - the node being inserted insertBefore (child, where)
boolean - .true if default, .false otherwise isDefaultNamespace (uri)
boolean - .true if equal, .false otherwise isEqualNode (other)
boolean - .true if the nodes are the same, .false otherwise. isSameNode (other)
boolean - .true if supported on this node, .false otherwise. isSupported (feature, version)
aNode - The last child of this node. lastChild ()
aString - The associated namespaceURI or .nil if none is found. lookupNamespaceURI (prefix)
aString - An associated namespace prefix or .nil if none is found lookupPrefix (uri)
aNode - The node immediately following this node. normalize ()
aNode - The node immediately preceding this node. removeChild (child)
aNode - The node replaced. replaceChild (new, old)
  setReadOnly (attrName, attrValue)
userData - The DOMUserData previously associated to the given key on this node, or null if there was none. setUserData (key, data, handler)
  textContent ()

Public Attributes

  attributes
  attributes
no comment
  baseURI
  baseURI
no comment
  childNodes
  childNodes
no comment
  localName
  localName
no comment
  namespaceURI
  namespaceURI
no comment
  nextSibling
  nodeName
  nodeName
no comment
  nodeType
  nodeType
no comment
  nodeValue
  nodeValue
no comment
  ownerDocument
  ownerDocument
no comment
  parentNode
  parentNode
no comment
  prefix
  prefix
no comment
  previousSibling
  textContent
no comment

Private Class Attributes

  instances

Private Methods

  treeWalk (nodes, name, nl)

Private Attributes

  id

Subclassed by

xmlAttr
xmlDocument
xmlDocumentType
xmlElement
xmlText
xmlPI
xmlComment

Mixed in by

xmlCharacterData

Feature Detail

xmlNode::constant null .nil

A convenience constant to implement null

Definition at line 299 of xmlDOM.cls

xmlNode::constant elementNode 1

Constants that define the type of nodes that are possible.

Definition at line 303 of xmlDOM.cls

xmlNode::constant attributeNode 2
Definition at line 304 of xmlDOM.cls

xmlNode::constant textNode 3
Definition at line 305 of xmlDOM.cls

xmlNode::constant cdataSectionNode 4
Definition at line 306 of xmlDOM.cls

xmlNode::constant entityReferenceNode 5
Definition at line 307 of xmlDOM.cls

xmlNode::constant entityNode 6
Definition at line 308 of xmlDOM.cls

xmlNode::constant processingInstructionNode 7
Definition at line 309 of xmlDOM.cls

xmlNode::constant commentNode 8
Definition at line 310 of xmlDOM.cls

xmlNode::constant documentNode 9
Definition at line 311 of xmlDOM.cls

xmlNode::constant documentTypeNode 10
Definition at line 312 of xmlDOM.cls

xmlNode::constant documentFragmentNode 11
Definition at line 313 of xmlDOM.cls

xmlNode::constant notationNode 12
Definition at line 314 of xmlDOM.cls

xmlNode::attribute instances class private

instances is a private class attribute (property) that is used to
keep track of the node instances being created and to provide a unique
identifier for each node.

Definition at line 320 of xmlDOM.cls

xmlNode::method getId class

Gets a unique identifier for each (subclass) node being created.

The use of use strict arg makes sure there are no parameters.

Returns
number - unique identifier for the new xmlNode

Definition at line 327 of xmlDOM.cls

xmlNode::attribute id private

The unique node identification

Definition at line 335 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 478 "self~id = self~class~getId"

xmlNode::attribute attributes get

A NamedNodeMap representing the attributes in an elementNode.

Definition at line 339 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 252 "if node~attributes~length>0 "
tryxmldom.rex line 253 "attrDir = node~attributes~toOorexxDirectory"
xmlDOM.cls line 479 "self~attributes = .nil"
xmlDOM.cls line 1667 "self~attributes = .xmlNamedNodeMap~new"
xmlDOM.cls line 1682 "node = self~attributes~getNamedItem(name)"
xmlDOM.cls line 1701 "node = self~attributes~getNamedItem(localName)"
xmlDOM.cls line 1709 "node = self~attributes~getNamedItem(prefix":"localName)"
xmlDOM.cls line 1726 "attrNode = self~attributes~getNamedItem(name)"
xmlDOM.cls line 1744 "attrNode = self~attributes~getNamedItem(localName)"
xmlDOM.cls line 1751 "attrNode = self~attributes~getNamedItem(prefix":"localName)"
xmlDOM.cls line 1774 "return self~attributes~getNamedItem(name)<>.nil"
xmlDOM.cls line 1793 "boolean = self~attributes~getNamedItem(name)<>.nil"
xmlDOM.cls line 1799 "boolean = self~attributes~getNamedItem(prefix':'localName)<>.nil"
xmlDOM.cls line 1817 "removed = self~attributes~removeNamedItem(name)"
xmlDOM.cls line 1836 "removed = self~attributes~removeNamedItemNS(namespaceURI,localName)"
xmlDOM.cls line 1851 "removed = self~attributes~removeNamedItem(oldAttr~nodeName)"
xmlDOM.cls line 1871 "node = self~attributes~getNamedItem(name)"
xmlDOM.cls line 1879 "self~attributes~setNamedItem(node)"
xmlDOM.cls line 1918 "node = self~attributes~getNamedItemNS(namespaceURI,localName)"
xmlDOM.cls line 1929 "self~attributes~setNamedItemNS(node)"
xmlDOM.cls line 1951 "node = self~attributes~setNamedItem(newAttr)"
xmlDOM.cls line 1967 "node = self~attributes~setNamedItemNS(newAttr)"
xmlDOM.cls line 1983 "node = self~attributes~getNamedItem(name)"
xmlDOM.cls line 2002 "node = self~attributes~getNamedItemNS(namespaceURI, localName)"
xmlDOM.cls line 2154 "self~attributes = .nil"

xmlNode::attribute attributes set
Definition at line 340 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 252 "if node~attributes~length>0 "
tryxmldom.rex line 253 "attrDir = node~attributes~toOorexxDirectory"

xmlNode::attribute baseURI get

The absolute base URI of this node or null if the implementation was not able to obtain an absolute URI.

Definition at line 344 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 480 "self~baseURI = .nil"

xmlNode::attribute baseURI set
Definition at line 345 of xmlDOM.cls

xmlNode::attribute childNodes get

A nodeList containing the childNodes of a node. If there are no children, this is a NodeList containing no
nodes.

Definition at line 350 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 30 "maxlat = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 31 "maxlon = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 32 "minlat = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 33 "minlon = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 65 "lat = stepStartLocations~item(s)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 66 "lon = stepStartLocations~item(s)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 69 "legData~distances~append(stepDistances~item(s)~childNodes~item(1)~firstChild~nodeValue)"
tryxmldom.rex line 70 "legData~durations~append(stepDurations~item(s)~childNodes~item(0)~firstChild~nodeValue)"
tryxmldom.rex line 78 "gpx = out~childNodes~item(1)"
tryxmldom.rex line 132 "metadata~insertBefore(name,metadata~childNodes~item(0))"
tryxmldom.rex line 220 "call domWriter out~childNodes, .queue~new"
tryxmldom.rex line 265 "if node~childNodes~length>0 "
tryxmldom.rex line 268 "call domWriter node~childNodes, tagStack"
xmlDOM.cls line 481 "self~childNodes = .xmlNodeList~new(.array~new)"
xmlDOM.cls line 505 "self~childNodes~append(child)"
xmlDOM.cls line 516 "return self~childNodes"
xmlDOM.cls line 570 "if (self~childNodes~length>0) "
xmlDOM.cls line 570 "child = self~Childnodes~item(0)"
xmlDOM.cls line 629 "self~childNodes~append(child)"
xmlDOM.cls line 634 "do i=0 to self~childNodes~length-1"
xmlDOM.cls line 635 "if self~childNodes~item(i) == where "
xmlDOM.cls line 636 "newList~append(self~childNodes~item(i))"
xmlDOM.cls line 638 "self~childNodes = newList"
xmlDOM.cls line 882 "if nodes~item(n)~childNodes~length>0 "
xmlDOM.cls line 883 "self~treewalk(nodes~item(n)~childNodes, name, nl)"
xmlDOM.cls line 1332 "siblings = self~parentNode~childNodes"
xmlDOM.cls line 1379 "self~parentNode~childNodes = nodeList"
xmlDOM.cls line 1399 "do c=0 to self~parentNode~childNodes-1"
xmlDOM.cls line 1400 "child = self~parentNode~childNodes~item(c)"
xmlDOM.cls line 1407 "self~parentNode~childNodes = children"
xmlDOM.cls line 1600 "if node~childNodes~length>0 "
xmlDOM.cls line 1601 "self~selectElements(node~childNodes, tag, nodeList)"
xmlDOM.cls line 1640 "if node~childNodes~items>0 "
xmlDOM.cls line 1641 "self~getElementNodesByTagNS(node~childNodes, namespaceURI, localName, nodeList)"
xmlDOM.cls line 1764 "self~selectElements(self~childNodes, tag, nodeList)"
xmlDOM.cls line 2426 "self~selectElements(self~childNodes, tagName, elements)"
xmlDOM.cls line 2445 "if (node~childNodes~length>0) "
xmlDOM.cls line 2446 "self~selectElements(node~childNodes, tag, nodelist)"

xmlNode::attribute childNodes set
Definition at line 351 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 30 "maxlat = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 31 "maxlon = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 32 "minlat = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 33 "minlon = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 65 "lat = stepStartLocations~item(s)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 66 "lon = stepStartLocations~item(s)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 69 "legData~distances~append(stepDistances~item(s)~childNodes~item(1)~firstChild~nodeValue)"
tryxmldom.rex line 70 "legData~durations~append(stepDurations~item(s)~childNodes~item(0)~firstChild~nodeValue)"
tryxmldom.rex line 78 "gpx = out~childNodes~item(1)"
tryxmldom.rex line 132 "metadata~insertBefore(name,metadata~childNodes~item(0))"
tryxmldom.rex line 220 "call domWriter out~childNodes, .queue~new"
tryxmldom.rex line 265 "if node~childNodes~length>0 "
tryxmldom.rex line 268 "call domWriter node~childNodes, tagStack"
xmlDOM.cls line 882 "if nodes~item(n)~childNodes~length>0 "
xmlDOM.cls line 883 "self~treewalk(nodes~item(n)~childNodes, name, nl)"
xmlDOM.cls line 1332 "siblings = self~parentNode~childNodes"
xmlDOM.cls line 1379 "self~parentNode~childNodes = nodeList"
xmlDOM.cls line 1399 "do c=0 to self~parentNode~childNodes-1"
xmlDOM.cls line 1400 "child = self~parentNode~childNodes~item(c)"
xmlDOM.cls line 1407 "self~parentNode~childNodes = children"
xmlDOM.cls line 1600 "if node~childNodes~length>0 "
xmlDOM.cls line 1601 "self~selectElements(node~childNodes, tag, nodeList)"
xmlDOM.cls line 1640 "if node~childNodes~items>0 "
xmlDOM.cls line 1641 "self~getElementNodesByTagNS(node~childNodes, namespaceURI, localName, nodeList)"
xmlDOM.cls line 2445 "if (node~childNodes~length>0) "
xmlDOM.cls line 2446 "self~selectElements(node~childNodes, tag, nodelist)"

xmlNode::attribute localName get

The local part of the qualified name of this node.


For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as
xmlDocument~createElement, this is always .nil.

Definition at line 358 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 482 "self~localName = .nil"
xmlDOM.cls line 1044 "name = arg~localName"
xmlDOM.cls line 1619 "if node~localName==localName "
xmlDOM.cls line 1927 "node~localName = localName"
xmlDOM.cls line 2226 "attr~localName = .nil"
xmlDOM.cls line 2271 "attr~localName = localName"
xmlDOM.cls line 2362 "element~localName = localName"
xmlDOM.cls line 2638 "document~localName = localName"

xmlNode::attribute localName set
Definition at line 359 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 1044 "name = arg~localName"
xmlDOM.cls line 1619 "if node~localName==localName "
xmlDOM.cls line 1927 "node~localName = localName"
xmlDOM.cls line 2226 "attr~localName = .nil"
xmlDOM.cls line 2271 "attr~localName = localName"
xmlDOM.cls line 2362 "element~localName = localName"
xmlDOM.cls line 2638 "document~localName = localName"

xmlNode::attribute namespaceURI get

The namespace URI of this node, or null if it is unspecified. This is not a computed value that is the result of a
namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given
at creation time.


For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as
xmlDocument~createElement, this is always .nil.

Definition at line 368 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 483 "self~namespaceURI = .nil"
xmlDOM.cls line 942 "if node~namespaceURI<>namespaceURI "
xmlDOM.cls line 998 "if node~namespaceURI==namespaceURI"
xmlDOM.cls line 1048 "if node~namespaceURI<>arg~namespaceURI"
xmlDOM.cls line 1048 "if node~namespaceURI<>arg~namespaceURI"
xmlDOM.cls line 1621 "if node~namespaceURI==namespacURI "
xmlDOM.cls line 1633 "if node~namespaceURI==namespacURI "
xmlDOM.cls line 1926 "node~namespaceURI = namespaceURI"
xmlDOM.cls line 2228 "attr~namespaceURI = .nil"
xmlDOM.cls line 2269 "attr~namespaceURI = namespaceURI"
xmlDOM.cls line 2360 "element~namespaceURI = namespaceURI"
xmlDOM.cls line 2639 "document~namespaceURI = namespaceURI"

xmlNode::attribute namespaceURI set
Definition at line 369 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 942 "if node~namespaceURI<>namespaceURI "
xmlDOM.cls line 998 "if node~namespaceURI==namespaceURI"
xmlDOM.cls line 1048 "if node~namespaceURI<>arg~namespaceURI"
xmlDOM.cls line 1048 "if node~namespaceURI<>arg~namespaceURI"
xmlDOM.cls line 1621 "if node~namespaceURI==namespacURI "
xmlDOM.cls line 1633 "if node~namespaceURI==namespacURI "
xmlDOM.cls line 1926 "node~namespaceURI = namespaceURI"
xmlDOM.cls line 2228 "attr~namespaceURI = .nil"
xmlDOM.cls line 2269 "attr~namespaceURI = namespaceURI"
xmlDOM.cls line 2360 "element~namespaceURI = namespaceURI"
xmlDOM.cls line 2639 "document~namespaceURI = namespaceURI"

xmlNode::attribute nextSibling



Definition at line 373 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 2157 "self~nextSibling = .nil"

xmlNode::attribute nodeName get

The following nodeName values are valid for a particular type of node:


Definition at line 391 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 484 "self~nodeName = ''"
xmlDOM.cls line 877 "if nodes~item(n)~nodeName==name "
xmlDOM.cls line 1021 "name = arg~nodeName"
xmlDOM.cls line 1142 "return self~nodeName"
xmlDOM.cls line 1348 "self~nodeName = "#text""
xmlDOM.cls line 1352 "self~nodeName = "#cdata-section""
xmlDOM.cls line 1472 "return self~nodeName"
xmlDOM.cls line 1482 "self~nodeName = target"
xmlDOM.cls line 1561 "self~nodeName = name"
xmlDOM.cls line 1655 "return self~nodeName"
xmlDOM.cls line 1665 "self~nodeName = tagname"
xmlDOM.cls line 1851 "removed = self~attributes~removeNamedItem(oldAttr~nodeName)"
xmlDOM.cls line 1877 "node~nodeName = name"
xmlDOM.cls line 1924 "node~nodeName = name"
xmlDOM.cls line 2152 "self~nodeName = "#document""
xmlDOM.cls line 2225 "attr~nodeName = name"
xmlDOM.cls line 2359 "element~nodeName = qualifiedName"

xmlNode::attribute nodeName set
Definition at line 392 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 877 "if nodes~item(n)~nodeName==name "
xmlDOM.cls line 1021 "name = arg~nodeName"
xmlDOM.cls line 1851 "removed = self~attributes~removeNamedItem(oldAttr~nodeName)"
xmlDOM.cls line 1877 "node~nodeName = name"
xmlDOM.cls line 1924 "node~nodeName = name"
xmlDOM.cls line 2225 "attr~nodeName = name"
xmlDOM.cls line 2359 "element~nodeName = qualifiedName"

xmlNode::attribute nodeType get

An integer indicating which type of node this is. See above.

Definition at line 396 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 249 "when node~nodeType=.xmlNode~elementNode "
tryxmldom.rex line 276 "when node~nodeType=.xmlNode~textNode "
tryxmldom.rex line 280 "when node~nodeType=.xmlNode~cdataSectionNode "
tryxmldom.rex line 284 "when node~nodeType=.xmlNode~entityReferenceNode "
tryxmldom.rex line 288 "when node~nodeType=.xmlNode~entityNode "
tryxmldom.rex line 292 "when node~nodeType=.xmlNode~processingInstructionNode "
tryxmldom.rex line 298 "when node~nodeType=.xmlNode~commentNode "
tryxmldom.rex line 304 "when node~nodeType=.xmlNode~documentTypeNode "
tryxmldom.rex line 308 "when node~nodeType=.xmlNode~documentFragmentNode "
tryxmldom.rex line 312 "when node~nodeType=.xmlNode~notationNode "
xmlDOM.cls line 486 "self~nodeType = .nil"
xmlDOM.cls line 1015 "if arg~nodeType==.xmlNode~attributeNode "
xmlDOM.cls line 1038 "if arg~nodeType==.attributeElement "
xmlDOM.cls line 1347 "self~nodeType = .xmlNode~textNode"
xmlDOM.cls line 1351 "self~nodeType = .xmlNode~CDATASectionNode"
xmlDOM.cls line 1481 "self~nodeType = .xmlNode~processingInstructionNode"
xmlDOM.cls line 1560 "self~nodeType = 10"
xmlDOM.cls line 1593 "if node~nodeType==.xmlNode~elementNode "
xmlDOM.cls line 1617 "if node~nodeType==.xmlNode~elementNode "
xmlDOM.cls line 1666 "self~nodeType = .xmlNode~elementNode"
xmlDOM.cls line 2151 "self~nodeType = .xmlNode~documentNode"
xmlDOM.cls line 2438 "if (node~nodeType==.xmlNode~elementNode) "

xmlNode::attribute nodeType set
Definition at line 397 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 249 "when node~nodeType=.xmlNode~elementNode "
tryxmldom.rex line 276 "when node~nodeType=.xmlNode~textNode "
tryxmldom.rex line 280 "when node~nodeType=.xmlNode~cdataSectionNode "
tryxmldom.rex line 284 "when node~nodeType=.xmlNode~entityReferenceNode "
tryxmldom.rex line 288 "when node~nodeType=.xmlNode~entityNode "
tryxmldom.rex line 292 "when node~nodeType=.xmlNode~processingInstructionNode "
tryxmldom.rex line 298 "when node~nodeType=.xmlNode~commentNode "
tryxmldom.rex line 304 "when node~nodeType=.xmlNode~documentTypeNode "
tryxmldom.rex line 308 "when node~nodeType=.xmlNode~documentFragmentNode "
tryxmldom.rex line 312 "when node~nodeType=.xmlNode~notationNode "
xmlDOM.cls line 1015 "if arg~nodeType==.xmlNode~attributeNode "
xmlDOM.cls line 1038 "if arg~nodeType==.attributeElement "
xmlDOM.cls line 1593 "if node~nodeType==.xmlNode~elementNode "
xmlDOM.cls line 1617 "if node~nodeType==.xmlNode~elementNode "
xmlDOM.cls line 2438 "if (node~nodeType==.xmlNode~elementNode) "

xmlNode::attribute nodeValue get

The following nodeName values are valid for a particular type of node:


Definition at line 415 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 21 "travel_mode = doc~getElementsByTagName("travel_mode")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 26 "startAddress = doc~getElementsByTagName("start_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 27 "endAddress = doc~getElementsByTagName("end_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 30 "maxlat = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 31 "maxlon = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 32 "minlat = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 33 "minlon = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 58 "encPoly = encodedPolylines~item(s)~firstChild~firstChild~nodeValue"
tryxmldom.rex line 63 "legData~directions~append(stepDirections~item(s)~firstChild~nodeValue)"
tryxmldom.rex line 65 "lat = stepStartLocations~item(s)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 66 "lon = stepStartLocations~item(s)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 69 "legData~distances~append(stepDistances~item(s)~childNodes~item(1)~firstChild~nodeValue)"
tryxmldom.rex line 70 "legData~durations~append(stepDurations~item(s)~childNodes~item(0)~firstChild~nodeValue)"
tryxmldom.rex line 99 "text ||= copyrights~item(i)~firstChild~nodeValue || .endofline"
tryxmldom.rex line 122 "text ||= warnings~item(i)~firstChild~nodeValue || .endofline"
xmlDOM.cls line 485 "self~nodeValue = ''"
xmlDOM.cls line 1173 "return self~nodeValue"
xmlDOM.cls line 1203 "return self~nodeValue"
xmlDOM.cls line 1216 "self~nodeValue = data"
xmlDOM.cls line 1466 "return self~nodeValue"
xmlDOM.cls line 1483 "self~nodeValue = data"
xmlDOM.cls line 1683 "nodeValue = node~nodeValue"
xmlDOM.cls line 1702 "nodeValue = node~nodeValue"
xmlDOM.cls line 1711 "nodeValue = node~nodeValue"
xmlDOM.cls line 1873 "node~nodeValue = value"
xmlDOM.cls line 1878 "node~nodeValue = value"
xmlDOM.cls line 1920 "node~nodeValue = value"
xmlDOM.cls line 1925 "node~nodeValue = value"
xmlDOM.cls line 2153 "self~nodeValue = .nil"
xmlDOM.cls line 2229 "attr~nodeValue = value"
xmlDOM.cls line 2273 "attr~nodeValue = ''"
xmlDOM.cls line 2815 "self~attrNode~nodeValue = attrValue"

xmlNode::attribute nodeValue set
Definition at line 416 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 21 "travel_mode = doc~getElementsByTagName("travel_mode")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 26 "startAddress = doc~getElementsByTagName("start_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 27 "endAddress = doc~getElementsByTagName("end_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 30 "maxlat = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 31 "maxlon = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 32 "minlat = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 33 "minlon = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 58 "encPoly = encodedPolylines~item(s)~firstChild~firstChild~nodeValue"
tryxmldom.rex line 63 "legData~directions~append(stepDirections~item(s)~firstChild~nodeValue)"
tryxmldom.rex line 65 "lat = stepStartLocations~item(s)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 66 "lon = stepStartLocations~item(s)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 69 "legData~distances~append(stepDistances~item(s)~childNodes~item(1)~firstChild~nodeValue)"
tryxmldom.rex line 70 "legData~durations~append(stepDurations~item(s)~childNodes~item(0)~firstChild~nodeValue)"
tryxmldom.rex line 99 "text ||= copyrights~item(i)~firstChild~nodeValue || .endofline"
tryxmldom.rex line 122 "text ||= warnings~item(i)~firstChild~nodeValue || .endofline"
xmlDOM.cls line 1683 "nodeValue = node~nodeValue"
xmlDOM.cls line 1702 "nodeValue = node~nodeValue"
xmlDOM.cls line 1711 "nodeValue = node~nodeValue"
xmlDOM.cls line 1873 "node~nodeValue = value"
xmlDOM.cls line 1878 "node~nodeValue = value"
xmlDOM.cls line 1920 "node~nodeValue = value"
xmlDOM.cls line 1925 "node~nodeValue = value"
xmlDOM.cls line 2229 "attr~nodeValue = value"
xmlDOM.cls line 2273 "attr~nodeValue = ''"
xmlDOM.cls line 2815 "self~attrNode~nodeValue = attrValue"

xmlNode::attribute ownerDocument get

The xmlDocument object associated with this node. This is also the xmlDocument object used to create new nodes. When
this node is a xmlDocument or a xmlDocumentType which is not used with any xmlDocument yet, this is .nil.

Definition at line 421 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 487 "self~ownerDocument = .nil"
xmlDOM.cls line 1036 "if arg~ownerDocument<>self~ownerDocument"
xmlDOM.cls line 1705 "prefixes = self~ownerdocument~nameSpaces[namespaceURI]"
xmlDOM.cls line 1747 "prefixes = self~ownerdocument~nameSpaces[namespaceURI]"
xmlDOM.cls line 1795 "prefixes = self~ownerDocument~nameSpaces[namespaceURI]"
xmlDOM.cls line 1945 "if newAttr~ownerDocument<>self~ownerDocument "
xmlDOM.cls line 1945 "if newAttr~ownerDocument<>self~ownerDocument "
xmlDOM.cls line 2158 "self~ownerDocument = .nil"
xmlDOM.cls line 2231 "attr~ownerDocument = self"
xmlDOM.cls line 2320 "element~ownerDocument = self"
xmlDOM.cls line 2630 "if docType~ownerDocument<>.nil "
xmlDOM.cls line 2642 "docType~ownerDocument = document"

xmlNode::attribute ownerDocument set
Definition at line 422 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 1036 "if arg~ownerDocument<>self~ownerDocument"
xmlDOM.cls line 1945 "if newAttr~ownerDocument<>self~ownerDocument "
xmlDOM.cls line 2231 "attr~ownerDocument = self"
xmlDOM.cls line 2320 "element~ownerDocument = self"
xmlDOM.cls line 2630 "if docType~ownerDocument<>.nil "
xmlDOM.cls line 2642 "docType~ownerDocument = document"

xmlNode::attribute parentNode get

The parent of this node. All nodes, except xmlAttr, xmlDocument, xmlDocumentFragment, xmlEntity, and xmlNotation may
have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from
the tree, this is .nil.

Definition at line 428 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 488 "self~parentNode = .nil"
xmlDOM.cls line 504 "child~parentNode = self"
xmlDOM.cls line 547 "clone~parentNode = .nil"
xmlDOM.cls line 640 "child~parentNode = self"
xmlDOM.cls line 826 "removed~parentNode = .nil"
xmlDOM.cls line 851 "self~children[i]~parentNode = self"
xmlDOM.cls line 852 "replaced~parentNode = .nil"
xmlDOM.cls line 1332 "siblings = self~parentNode~childNodes"
xmlDOM.cls line 1379 "self~parentNode~childNodes = nodeList"
xmlDOM.cls line 1399 "do c=0 to self~parentNode~childNodes-1"
xmlDOM.cls line 1400 "child = self~parentNode~childNodes~item(c)"
xmlDOM.cls line 1407 "self~parentNode~childNodes = children"
xmlDOM.cls line 2155 "self~parentNode = .nil"

xmlNode::attribute parentNode set
Definition at line 429 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 504 "child~parentNode = self"
xmlDOM.cls line 547 "clone~parentNode = .nil"
xmlDOM.cls line 640 "child~parentNode = self"
xmlDOM.cls line 826 "removed~parentNode = .nil"
xmlDOM.cls line 851 "self~children[i]~parentNode = self"
xmlDOM.cls line 852 "replaced~parentNode = .nil"

xmlNode::attribute prefix get

The namespace prefix of this node, or null if it is unspecified. When it is defined to be .nil, setting it has
no effect, including if the node is read-only.

Note that setting this attribute, when permitted, changes the nodeName attribute, which holds the qualified name, as
well as the tagName and name attributes of the xmlElement and xmlAttr interfaces, when applicable.

Setting the prefix to null makes it unspecified, setting it to an empty string is implementation dependent. Note also
that changing the prefix of an attribute that is known to have a default value, does not make a new attribute with the
default value and the original prefix appear, since the namespaceURI and localName do not change.

For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as
createElement from the xmlDocument interface, this is always .nil.

Definition at line 444 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 489 "self~prefix = .nil"
xmlDOM.cls line 1928 "node~prefix = prefix"
xmlDOM.cls line 2227 "attr~prefix = .nil"
xmlDOM.cls line 2270 "attr~prefix = prefix"
xmlDOM.cls line 2361 "element~prefix = prefix"
xmlDOM.cls line 2637 "document~prefix = prefix"

xmlNode::attribute prefix set
Definition at line 445 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 1928 "node~prefix = prefix"
xmlDOM.cls line 2227 "attr~prefix = .nil"
xmlDOM.cls line 2270 "attr~prefix = prefix"
xmlDOM.cls line 2361 "element~prefix = prefix"
xmlDOM.cls line 2637 "document~prefix = prefix"

xmlNode::attribute previousSibling



Definition at line 449 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 2156 "self~previousSibling = .nil"

xmlNode::method textContent

This attribute returns the text content of this node and its descendants. When it is defined to be .nil, setting it
has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty
or null, replaced by a single xmlText node containing the string this attribute is set to.


Definition at line 455 of xmlDOM.cls

xmlNode::attribute textContent set
Definition at line 458 of xmlDOM.cls

xmlNode::method setReadOnly

Method to initially set read-only attributes

If the attribute has been set already a syntx error will be raised

Parameters
attrName - the name of the Attribute.
attrValue - the value of the attribute.
Raises
syntax 93.900 - Attribute value cannot be set twice

Definition at line 467 of xmlDOM.cls

xmlNode::method init

The instance constructor


Definition at line 477 of xmlDOM.cls

xmlNode::method appendChild

Adds the node child to the end of the list of children of this node. If the child is already in the
tree, it is first removed.

If child is a xmlDocumentFragment object, the entire contents of the document fragment are moved into the child
list of this node.

Parameters
child - the node to be appended.
Returns
node - the node appended

Definition at line 500 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 75 "out~appendChild(dom~firstChild)"
tryxmldom.rex line 77 "out~appendChild(out~createElement("gpx"))"
tryxmldom.rex line 95 "metadata = gpx~appendChild(out~createElement("metadata"))"
tryxmldom.rex line 104 "copyright~appendChild(textNode)"
tryxmldom.rex line 105 "metadata~appendChild(copyright)"
tryxmldom.rex line 110 "name~appendChild(text)"
tryxmldom.rex line 111 "author~appendChild(name)"
tryxmldom.rex line 116 "author~appendChild(link)"
tryxmldom.rex line 117 "metadata~appendChild(author)"
tryxmldom.rex line 126 "desc~appendChild(textNode)"
tryxmldom.rex line 127 "metadata~appendChild(desc)"
tryxmldom.rex line 131 "name~appendChild(text)"
tryxmldom.rex line 136 "keywords~appendChild(text)"
tryxmldom.rex line 137 "metadata~appendChild(keywords)"
tryxmldom.rex line 152 "metadata~appendChild(bounds)"
tryxmldom.rex line 156 "gpx~appendChild(rte)"
tryxmldom.rex line 159 "rte~appendChild(name)"
tryxmldom.rex line 161 "name~appendChild(text)"
tryxmldom.rex line 164 "rte~appendChild(type)"
tryxmldom.rex line 166 "type~appendChild(text)"
tryxmldom.rex line 178 "rte~appendChild(rtept)"
tryxmldom.rex line 182 "cmt~appendChild(text)"
tryxmldom.rex line 183 "rtept~appendChild(cmt)"
tryxmldom.rex line 188 "gpx~appendChild(trk)"
tryxmldom.rex line 191 "trk~appendChild(name)"
tryxmldom.rex line 193 "name~appendChild(text)"
tryxmldom.rex line 196 "trk~appendChild(type)"
tryxmldom.rex line 198 "type~appendChild(text)"
tryxmldom.rex line 201 "trk~appendChild(trkseg)"
tryxmldom.rex line 216 "trkseg~appendChild(trkpt)"
xmlDOM.cls line 2641 "document~appendChild(docType)"
xmlDOM.cls line 2779 "self~nodeStack[1]~appendChild(elementNode)"
xmlDOM.cls line 2829 "self~nodeStack[1]~appendChild(piNode)"
xmlDOM.cls line 2841 "self~nodeStack[1]~appendChild(cmtNode)"
xmlDOM.cls line 2852 "self~nodeStack[1]~appendChild(txtNode)"
xmlDOM.cls line 2863 "self~nodeStack[1]~appendChild(cdataNode)"

xmlNode::method children


If there are no children, then this is a xmlNodeList containing no nodes.

Returns
nodes - A xmlNodeList that contains all the children of this node.

Definition at line 514 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 609 "if (self~children~items>0) "
xmlDOM.cls line 720 "if (self~children~items>0) "
xmlDOM.cls line 720 "child = self~children[self~children~items]"
xmlDOM.cls line 720 "child = self~children[self~children~items]"
xmlDOM.cls line 822 "do i=1 to self~children~items"
xmlDOM.cls line 825 "removed = self~children~remove(i)"
xmlDOM.cls line 846 "do i=1 to self~children~items"
xmlDOM.cls line 847 "if (self~children[i]==old) "
xmlDOM.cls line 849 "replaced = self~children[i]"
xmlDOM.cls line 850 "self~children[i] = new"
xmlDOM.cls line 851 "self~children[i]~parentNode = self"

xmlNode::method cloneNode

Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no
parent (parentNode is .nil) and no user data. User data associated to the imported node is not carried over.
However, if any UserDataHandlers has been specified along with the associated data these handlers will be called with
the appropriate parameters before this method returns.

If deep is .true, recursively clone the subtree under the specified node; if .false, clone only
the node itself (and its attributes, if it is an xmlElement).
Cloning an xmlElement copies all attributes and their values, including those generated by the XML processor to
represent defaulted attributes, but this method does not copy any children it contains unless it is a deep
clone. This includes text contained in the xmlElement since the text is contained in a child xmlText node.


Cloning an xmlAttr directly, as opposed to be cloned as part of an xmlElement cloning operation, returns a specified
attribute (specified is true). Cloning an xmlAttr always clones its children, since they represent its value, no
matter whether this is a deep clone or not.


Cloning an xmlEntityReference automatically constructs its subtree if a corresponding xmlEntity is available, no
matter whether this is a deep clone or not.


Cloning any other type of node simply returns a copy of this node.


Note that cloning an immutable subtree results in a mutable copy, but the children of an xmlEntityReference clone are
readonly. In addition, clones of unspecified xmlAttr nodes are specified. And, cloning xmlDocument, xmlDocumentType,
xmlEntity, and xmlNotation nodes is implementation dependent.

Parameters
deep=.false - optional .true or .false (= default)
Returns
node - the duplicated node

Definition at line 544 of xmlDOM.cls

xmlNode::method compareDocumentPosition

Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a
parameter, with regard to their position in the document and according to the document order.

Parameters
other - The node to compare with
Returns
number - Position relatively to the reference node

Definition at line 558 of xmlDOM.cls

xmlNode::method firstChild


If there is no such node, this returns .nil

Returns
child - The first child of this node

Definition at line 567 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 21 "travel_mode = doc~getElementsByTagName("travel_mode")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 26 "startAddress = doc~getElementsByTagName("start_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 27 "endAddress = doc~getElementsByTagName("end_address")~item(0)~firstChild~nodeValue"
tryxmldom.rex line 30 "maxlat = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 31 "maxlon = bounds~getElementsByTagName("northeast")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 32 "minlat = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 33 "minlon = bounds~getElementsByTagName("southwest")~item(0)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 58 "encPoly = encodedPolylines~item(s)~firstChild~firstChild~nodeValue"
tryxmldom.rex line 58 "encPoly = encodedPolylines~item(s)~firstChild~firstChild~nodeValue"
tryxmldom.rex line 63 "legData~directions~append(stepDirections~item(s)~firstChild~nodeValue)"
tryxmldom.rex line 65 "lat = stepStartLocations~item(s)~childNodes~item(0)~firstChild~nodeValue"
tryxmldom.rex line 66 "lon = stepStartLocations~item(s)~childNodes~item(1)~firstChild~nodeValue"
tryxmldom.rex line 69 "legData~distances~append(stepDistances~item(s)~childNodes~item(1)~firstChild~nodeValue)"
tryxmldom.rex line 70 "legData~durations~append(stepDurations~item(s)~childNodes~item(0)~firstChild~nodeValue)"
tryxmldom.rex line 75 "out~appendChild(dom~firstChild)"
tryxmldom.rex line 99 "text ||= copyrights~item(i)~firstChild~nodeValue || .endofline"
tryxmldom.rex line 122 "text ||= warnings~item(i)~firstChild~nodeValue || .endofline"

xmlNode::method getFeature


This method returns a specialized object which implements the specialized APIs of the specified feature and version,
as specified in DOM Features. The specialized object may also be obtained by using binding-specific casting methods
but is not necessarily expected to.


This method also allows the implementation to provide specialized objects which do not support the xmlNode interface.

Parameters
feature - The name of the feature requested
version - The version number of the feature to test
Returns
domObject - An object which implements the specialized APIs or .nil

Definition at line 583 of xmlDOM.cls

xmlNode::method getUserData

Retrieves the object associated to a key on a this node. The object must first have been set to this node by calling
setUserData with the same key.

Parameters
key - The key the object is associated to.
Returns
userdata - the DOMUserData associated, or .nil if there was none

Definition at line 593 of xmlDOM.cls

xmlNode::method hasAttributes


Returns
boolean - .true if this node has any attributes, .false otherwise

Definition at line 600 of xmlDOM.cls

xmlNode::method hasChildNodes


Returns
boolean - .true if this node has any children, .false otherwise

Definition at line 606 of xmlDOM.cls

xmlNode::method insertBefore

Inserts the node child before the existing child node where.

If where is .nil, insert child at the end of the list of children.


If child is a xmlDocumentFragment object, all of its children are inserted, in the same order, before
where.


If the child is already in the tree, it is first removed.


Note: Inserting a node before itself is implementation dependent.

Parameters
child - the node to be inserted
where - the node before which the new node needs to be inserted.
Returns
node - the node being inserted

Definition at line 626 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 132 "metadata~insertBefore(name,metadata~childNodes~item(0))"

xmlNode::method isDefaultNamespace

This method checks if the specified namespaceURI is the default namespace or not.

Parameters
uri - The namespaceURI to look for
Returns
boolean - .true if default, .false otherwise

Definition at line 647 of xmlDOM.cls

xmlNode::method isEqualNode

Tests whether two nodes are equal.


This method tests for equality of nodes, not sameness (i.e., whether the two nodes are references to the same object)
which can be tested with xmlNode~isSameNode. All nodes that are the same will also be equal, though the reverse may
not be true.


Two nodes are equal if and only if the following conditions are satisfied:

For two xmlDocumentType nodes to be equal, the following conditions must also be satisfied:

On the other hand, the following do not affect equality: the ownerDocument, baseURI, and parentNode attributes, the
specified attribute for xmlAttr nodes, the schemaTypeInfo attribute for xmlAttr and xmlElement nodes, the
xmlText~isElementContentWhitespace attribute for xmlText nodes, as well as any user data or event listeners registered
on the nodes.

Parameters
other - The node to compare equality with
Returns
boolean - .true if equal, .false otherwise

Definition at line 684 of xmlDOM.cls

xmlNode::method isSameNode

Tests whether this node is the same node as the given one.

This method provides a way to determine whether two xmlNode references returned by the implementation reference the
same object. When two xmlNode references are references to the same object, even if through a proxy, the references
may be used completely interchangeably, such that all attributes have the same values and calling the same DOM method
on either reference always has exactly the same effect.

Parameters
other - The node to test against.
Returns
boolean - .true if the nodes are the same, .false otherwise.

Definition at line 698 of xmlDOM.cls

xmlNode::method isSupported

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as
specified in DOM Features.

Parameters
feature - The name of the feature to test.
version - This is the version number of the feature to test.
Returns
boolean - .true if supported on this node, .false otherwise.

Definition at line 709 of xmlDOM.cls

xmlNode::method lastChild


If there is no such node, this returns .nil.

Returns
aNode - The last child of this node.

Definition at line 717 of xmlDOM.cls

xmlNode::method lookupNamespaceURI

Look up the namespaceURI associated to the given prefix, starting from this node.


See Namespace URI Lookup for details on the algorithm used by this method.

If prefix is null, the method will return the default namespaceURI if any.

Parameters
prefix - The prefix to look for.
Returns
aString - The associated namespaceURI or .nil if none is found.

Definition at line 731 of xmlDOM.cls

xmlNode::method lookupPrefix

Look up the prefix associated to the given namespaceURI, starting from this node.

The default namespace declarations are ignored by this method. See Namespace Prefix Lookup for details on the
algorithm used by this method.


If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation
dependent.

Parameters
uri - A string specifying the namespaceURI to look for
Returns
aString - An associated namespace prefix or .nil if none is found

Definition at line 746 of xmlDOM.cls

xmlNode::method normalize

Finds the next sibling.

If there is no such node, this returns .nil.

::method nextSibling
use strict arg
sibling = .nil
if (self~parentNode<>.nil) then do
siblings = self~parentNode~childNodes
do label next i=1 to siblings~items
if (siblings[i]==self) then do
if (i sibling = siblings[i-1]
leave next
end
end
end
end
return sibling


Puts all xmlText nodes in the full depth of the sub-tree underneath this xmlNode, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity
references) separates xmlText nodes, i.e., there are neither adjacent xmlText nodes nor empty xmlText nodes. This can
be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when
operations (such as XPointer [XPointer] lookups) that depend on a particular document tree structure are to be used.


If the parameter "normalize-characters" of the DOMConfiguration object attached to the xmlNode~ownerDocument is
.true, this method will also fully normalize the characters of the xmlText nodes.


Note: In cases where the document contains CDATASections, the normalize operation alone may not be sufficient, since
XPointers do not differentiate between xmlText nodes and xmlCDATASection nodes.

Returns
aNode - The node immediately following this node.

Definition at line 785 of xmlDOM.cls

xmlNode::method removeChild

Finds the preceding node.

If there is no such node, this returns .nil


::method previousSibling
use strict arg
sibling = .nil
if (self~parentNode<>.nil) then do
siblings = self~parentNode~childNodes
do labl prev i=1 to siblings~items
if (siblings[i]==self) then do
if (i>1) then do
sibling = siblings[i-1]
leave prev
end
end
end
end
return sibling


Removes the child node indicated by aNode from the list of children, and returns it.

Parameters
child - The node being removed.
Returns
aNode - The node immediately preceding this node.
aNode - The node removed.

Definition at line 817 of xmlDOM.cls

xmlNode::method replaceChild

Replaces the child node old with new in the list of children, and returns the old child node.

If new is a xmlDocumentFragment object, old is replaced by all of the
xmlDocumentFragment children, which are inserted in the same order. If the new
is already in the tree, it is first removed.


Note: Replacing a node with itself is implementation dependent.

Parameters
new - The new node to put in the child list.
old - The node being replaced in the list.
Returns
aNode - The node replaced.

Definition at line 841 of xmlDOM.cls

xmlNode::method setUserData

Associate an object to a key on this node. The object can later be retrieved from this node by invoking the
getUserData method with the same key.

Parameters
key - The key to associate the object to.
data - A DOMUserData object to associate to the key, or null to remove any existing association to that key.
handler - An UserDataHandler, a handler to associate to that key, or null.
Returns
userData - The DOMUserData previously associated to the given key on this node, or null if there was none.

Definition at line 863 of xmlDOM.cls

xmlNode::method treeWalk private

Convenience method to walk thru a (sub)nodes tree

Parameters
nodes - The sibling xmlNodeList to start the walk.
name - The name of the tag being searched for.
nl - The xmlNodeList containing the selected result nodes.

Definition at line 873 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 883 "self~treewalk(nodes~item(n)~childNodes, name, nl)"


Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 30 Jul 2015 13:56:49 for xmlDOM for OOrexx by rexxliterate  0.0.1