XmlNode

Return to Introduction  Previous page  Next page

A node in a XmlDocument.

 

Properties

 

firstChild

Returns the first child of this node as an XmlNode.

nextSibling

Returns the next sibling node of this node as an XmlNode.

parent

Returns the parent node of this node as an XmlNode.

name

Returns the name of this node.

text

Gets or sets the text associated with this node.

 

Methods

 

selectSingle(query)

Uses the query string as an XSL pattern query and returns an XmlNode if found, or null if not found.

attributeGet(attributeName)

Returns the content of the given named attribute attached to this node.

attributeSet(attributeName, newValue)

Sets the content of the given named attribute attached to this node.

attributeExists(attributeName)

Returns true if the named attribute already exists for this node.

attributeRemove(attributeName)

Removes the named attribute from this node.

addChild(name)

Adds a new node as a child of this node with the given name, and returns it's XmlNode.

 

Examples

 

See the system.xml description for a full XML example.

 

See Also

 

Script Reference



Copyright ©2004 Worldweaver Ltd. DX Studio Home