Namespaceuri (Xmlnode.namespaceuri Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

namespaceURI (XMLNode.namespaceURI property)

public namespaceURI : String [read-only]
If the XML node has a prefix,
prefix (the URI), which is typically called the namespace URI. The
current node or in a node higher in the XML hierarchy.
If the XML node does not have a prefix, the value of the
whether there is a default namespace defined (as in
there is a default namespace, the value of the
default namespace. If there is no default namespace, the
node is an empty string (
You can use the
getNamespaceForPrefix()
with a specific prefix. The
name.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example shows how the
prefixes. A directory contains a SWF file and an XML file. The XML file, named
contains the following tags.
SoapSample.xml
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope">
<soap:Body xmlns:w="http://www.example.com/weather">
<w:GetTemperature>
<w:City>San Francisco</w:City>
</w:GetTemperature>
</soap:Body>
</soap:Envelope>
The source for the SWF file contains the following script (note the comments for the Output
strings). For
tempNode
is defined in the
namespaceURI
node, the value of
soap:Body
prefix in the node above it, rather than the definition of the
contains.
var xmlDoc:XML = new XML();
xmlDoc.load("SoapSample.xml");
xmlDoc.ignoreWhite = true;
xmlDoc.onLoad = function(success:Boolean)
{
var tempNode:XMLNode = xmlDoc.childNodes[0].childNodes[0].childNodes[0];
1328
ActionScript classes
namespaceURI
).
""
property returns the prefix associated with the node
namespaceURI
namespaceURI
, which represents the
soap:Body
namespaceURI
is the value of the
xmlns
namespaceURI
xmlns="http://www.example.com/"
property is the value of the
namespaceURI
namespaceURI
method to identify the namespace associated
property is affected by the use of
w:GetTemperature
tag. For
soapBodyNode
is determined by the definition of the
prefix that the
w
declaration for that
declaration is in the
xmlns
property depends on
property for that
node, the value of
, which represents the
soap
soap:Body
). If
node

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF