Name

XML Class — DOM-based support for XML-structured data

Availability

Flash 5

Constructor

new XML( )
new XML(source)

Arguments

source

An optional string containing well-formed XML (or HTML) data to be parsed into an XML object hierarchy.

Properties

attributes

An object whose properties store element attributes.

childNodes

An array of references to a node’s children.

contentType

The MIME content type to be transmitted to servers.

docTypeDecl

The document’s DOCTYPE tag.

firstChild

A reference to the first descendant of a node.

ignoreWhite

Determines whether to ignore whitespace nodes during XML parsing.

lastChild

A reference to the last descendant of a node.

loaded

Status of a load( ) or sendAndLoad( ) operation.

nextSibling

A reference to the node after this node in the current level of the object hierarchy.

nodeName

The name of the current node.

nodeType

The type of the current node.

nodeValue

The value of the current node.

parentNode

A reference to the immediate ancestor of a node.

previousSibling

A reference to the node before this node in the current level of the object hierarchy.

status

Error code describing the result of parsing XML source into an object hierarchy.

xmlDecl

The document’s XML declaration tag.

Methods

appendChild( )

Add a new child node to a node.

cloneNode( )

Create a copy of a node.

createElement( )

Create a new element node.

createTextNode( )

Create a new text node.

hasChildNodes( )

Check if a node has any descendants.

insertBefore( )

Add a sibling node before a node.

load( )

Import XML source code from an ...

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.