XML class
175
// Create another array and use the child nodes to populate it.
var secondArray = rootNode.childNodes;
trace(secondArray);
// Output: <oldest />,<middle />,<youngest />
See also
XML.nodeType
XML.cloneNode()
Availability
Flash Media Server 2.
Usage
my_xml
.cloneNode(
deep
)
Parameters
deep
A Boolean value; if set to
true
, the children of the specified XML object will be
recursively cloned, otherwise
false
.
Returns
An XMLNode object.
Description
Method; constructs and returns a new XMLNode object of the same type, name,
management console value, and attributes as the specified XML object. If
deep
is set to
true
,
all child nodes are recursively cloned, resulting in an exact copy of the original object’s
document tree.
The clone of the node that is returned is no longer associated with the tree of the cloned item.
Consequently,
nextSibling
,
parentNode
, and
previousSibling
have a value of
null
. If
the
deep
parameter is set to
false
, or the
my_xml
node has no child nodes,
firstChild
and
lastChild
are also
null
.
NO
TE
In Flash Media Server, the output of
trace()
statements appears in the application log
file and Application inspector.
Содержание FLASH MEDIA SERVER 2
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...