XML class
183
Returns
An integer.
Description
Method; returns the size of the XML document in bytes.
Example
See the example for
XML.getBytesLoaded()
on page 182
.
See also
XML.getBytesLoaded()
XML.getNamespaceForPrefix()
Availability
Flash Media Server 2.
Usage
my_xml
.getNamespaceForPrefix(
prefix
)
Parameters
prefix
A string; the prefix for which the method returns the associated namespace.
Returns
A String; the namespace that is associated with the specified prefix.
Description
Method; returns the namespace URI that is associated with the specified prefix for the node.
To determine the URI,
getPrefixForNamespace()
searches up the XML hierarchy from the
node, as necessary, and returns the namespace URI of the first xmlns declaration for the given
prefix.
If no namespace is defined for the specified prefix, the method returns null.
If you specify an empty string (
""
) as the prefix and there is a default namespace defined for
the node (as in xmlns="http://www.example.com/"), the method returns that default
namespace URI.