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
XMLobject 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
DOCTYPEtag.
- 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( )orsendAndLoad( )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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access