Flash Lite 2.x and 3.0 ActionScript Language Reference

XMLNode

Object
    |
    +-XMLNode

public class XMLNode
extends Object

An XML document is represented in Flash by the XML class. Each element of the hierarchical document is represented by an XMLNode object.

See also

hasXMLSocket (capabilities.hasXMLSocket property)

Property summary

Modifiers

Property

Description

 

attributes:Object

An object containing all of the attributes of the specified XML instance.

 

childNodes:Array [read-only]

An array of the specified XML object's children.

 

firstChild:XMLNode [read-only]

Evaluates the specified XML object and references the first child in the parent node's child list.

 

lastChild:XMLNode [read-only]

An XMLNode value that references the last child in the node's child list.

 

nextSibling:XMLNode [read-only]

An XMLNode value that references the next sibling in the parent node's child list.

 

nodeName:String

A string representing the node name of the XML object.

 

nodeType:Number [read-only]

A nodeType value, either 1 for an XML element or 3 for a text node.

 

nodeValue:String

The node value of the XML object.

 

parentNode:XMLNode [read-only]

An XMLNode value that references the parent node of the specified XML object, or returns null if the node has no parent.

 

previousSibling:XMLNode [read-only]

An XMLNode value that references the previous sibling in the parent node's child list.

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)

Method summary

Modifiers

Signature

Description

 

appendChild(newChild:XMLNode) : Void

Appends the specified node to the XML object's child list.

 

cloneNode(deep:Boolean) : XMLNode

Constructs and returns a new XML node of the same type, name, value, and attributes as the specified XML object.

 

hasChildNodes() : Boolean

Specifies whether or not the XML object has child nodes.

 

insertBefore(newChild:XMLNode, insertPoint:XMLNode) : Void

Inserts a newChild node into the XML object's child list, before the insertPoint node.

 

removeNode() : Void

Removes the specified XML object from its parent.

 

toString() : String

Evaluates the specified XML object, constructs a textual representation of the XML structure, including the node, children, and attributes, and returns the result as a string.

Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)