XML.insertBefore()
Availability
Flash Media Server 2.
Usage
my_xml.insertBefore(childNode, beforeNode)
Parameters
The XMLNode object to be inserted.
childNode
The XMLNode object before the insertion point for the
node.
beforeNode
childNode
Returns
Nothing.
Description
Method; inserts a new child node into the XML object's child list, before the
beforeNode
node. If
is not a child of
, the insertion fails.
beforeNode
my_xml
Example
The following example is an excerpt from the
example:
XML.cloneNode()
// Create a copy of the middle node using cloneNode().
var middle2 = middle.cloneNode(false);
// Insert the clone node into rootNode
// between the middle and youngest nodes.
rootNode.insertBefore(middle2, youngest);
XML.lastChild
Availability
Flash Media Server 2.
Usage
my_xml.lastChild
Description
Property (read-only); an XMLNode value that references the last child in the node's child list.
The
property is
if the node does not have children. This property
XML.lastChild
null
cannot be used to manipulate child nodes; use the
,
, and
appendChild()
insertBefore()
methods to manipulate child nodes.
removeNode()
XML class
189
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?