| Package | gs.util |
| Class | public dynamic class XMLNamespaceProxy |
| Inheritance | XMLNamespaceProxy flash.utils.Proxy |
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.
//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);
| Property | Defined by | ||
|---|---|---|---|
| ns : Namespace
The namespace all calls are proxied into.
| XMLNamespaceProxy | ||
| xml : *
The xml being proxied to.
| XMLNamespaceProxy | ||
| Method | Defined 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 | ||
| Method | Defined 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 | ||
| ns | property |
public var ns:NamespaceThe namespace all calls are proxied into.
| xml | property |
public var xml:*The xml being proxied to.
| XMLNamespaceProxy | () | constructor |
public function XMLNamespaceProxy(xml:*, ns:Namespace)Constructor for XMLNamespaceProxy instances.
Parametersxml:* — The xml object.
|
|
ns:Namespace — namespace.
|
| callProperty | () | method |
flash_proxy override function callProperty(name:*, ... rest):*Forwards property calls onto the internal xml.
Parametersname:* |
|
... rest |
* |
| dispose | () | method |
public function dispose():voidDispose 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.
Parametersname:* |
* |
| hasProperty | () | method |
flash_proxy override function hasProperty(name:*):BooleanForwards the call to xml.hasOwnProperty(name).
Parametersname:* |
Boolean |
| info | () | method |
public function info():StringReturns a string with an object description, and namespace.
ReturnsString |
"[XMLNamespaceProxy http://example.com/]";
| toString | () | method |
public function toString():StringCalls toString on the internal xml.
ReturnsString |
| toXMLString | () | method |
public function toXMLString():StringCalls toXMLString on the internal xml.
ReturnsString |