Packagegs.util
Classpublic dynamic class XMLNamespaceProxy
InheritanceXMLNamespaceProxy Inheritance flash.utils.Proxy

The XMLNamespaceProxy class relieves you from having to access xml with the correctly qualified namespace every time.

When you access xml nodes, it will return another XMLNamespaceProxy to you, so you can parse through the xml like normal

However - when you access a node that's an XMLList, it returns that XMLList to you.


Example
 
  //go from this:
  var ns:Namespace=xml.namespace();
  trace(xml.ns::node.ns::node);
  
  //to this:
  var ns:Namespace=xml.namespace();
  var xns:XMLNamespaceProxy=new XMLNamespaceProxy(xml,ns);
  trace(xns.node.node);
  



Public Properties
 PropertyDefined by
  ns : Namespace
The namespace all calls are proxied into.
XMLNamespaceProxy
  xml : *
The xml being proxied to.
XMLNamespaceProxy
Public Methods
 MethodDefined by
  
XMLNamespaceProxy(xml:*, ns:Namespace)
Constructor for XMLNamespaceProxy instances.
XMLNamespaceProxy
  
dispose():void
Dispose of this xml namespace proxy.
XMLNamespaceProxy
  
info():String
Returns a string with an object description, and namespace.
XMLNamespaceProxy
  
toString():String
Calls toString on the internal xml.
XMLNamespaceProxy
  
toXMLString():String
Calls toXMLString on the internal xml.
XMLNamespaceProxy
Protected Methods
 MethodDefined by
  
callProperty(name:*, ... rest):*
Forwards property calls onto the internal xml.
XMLNamespaceProxy
  
getProperty(name:*):*
Forwards a property lookup to the internal xml, prefixed by the namespace.
XMLNamespaceProxy
  
hasProperty(name:*):Boolean
Forwards the call to xml.hasOwnProperty(name).
XMLNamespaceProxy
Property detail
nsproperty
public var ns:Namespace

The namespace all calls are proxied into.

xmlproperty 
public var xml:*

The xml being proxied to.

Constructor detail
XMLNamespaceProxy()constructor
public function XMLNamespaceProxy(xml:*, ns:Namespace)

Constructor for XMLNamespaceProxy instances.

Parameters
xml:* — The xml object.
 
ns:Namespace — namespace.
Method detail
callProperty()method
flash_proxy override function callProperty(name:*, ... rest):*

Forwards property calls onto the internal xml.

Parameters
name:*
 
... rest

Returns
*
dispose()method 
public function dispose():void

Dispose of this xml namespace proxy.

getProperty()method 
flash_proxy override function getProperty(name:*):*

Forwards a property lookup to the internal xml, prefixed by the namespace.

Parameters
name:*

Returns
*
hasProperty()method 
flash_proxy override function hasProperty(name:*):Boolean

Forwards the call to xml.hasOwnProperty(name).

Parameters
name:*

Returns
Boolean
info()method 
public function info():String

Returns a string with an object description, and namespace.

Returns
String

Example
 
   "[XMLNamespaceProxy http://example.com/]";
   

toString()method 
public function toString():String

Calls toString on the internal xml.

Returns
String
toXMLString()method 
public function toXMLString():String

Calls toXMLString on the internal xml.

Returns
String