# XMLNode ActionScript Class

This class implements an XMLNode object. This is mostly only used internally by Gnash for holding the data for a node. It does exist within the interpreter as a valid object though, so its properties and methods can be accessed by a flash movie script.

As the XML class is derived from this one, many of these methods are the same as for that class.

## The Methods of the Class

appendChild()

- Append a child node to this node.

cloneNode()

- Copy a node, returning an XMLNode *.

hasChildNodes()

- Return true if this node has any children.

insertBefore()

- Insert a node before this node.

removeNode()

- Remove a node from the parent's list.

toString()

- Convert the node and its children to a string representation.

## The Properties of the XMLNode Class

attributes

- Returns an array of the attributes of a node.

childNodes

- Returns an array of the children of a node.

firstChild

- Returns the first child node.

lastChild

- Returns the last child node.

nextSibling

- Returns the next child node.

previousSibling

- Returns the child node before this one.

nodeName

- Returns the name of the node.

nodeType

- Returns the type of a node.

nodeValue

- Contains the text for a text node type.

parentNode

- Returns this node's parent.

## XMLNode Class Conformance

Class Name | Conformance
appendChild() | This method is implemented.
cloneNode() | This method is implemented.
hasChildNodes() | This method is implemented.
insertBefore() | This method is unimplemented.
removeNode() | This method is unimplemented.
toString() | This method is unimplemented.
attributes | This property is unimplemented.
childNodes | This property is unimplemented.
firstChild | This property is implemented.
lastChild | This property is implemented.
nextSibling | This property is implemented.
previousSibling | This property is implemented.
nodeName | This property is implemented.
nodeType | This property is implemented.
nodeValue | This property is implemented.
parentNode | This property is unimplemented.