The XMLUtil class is an all-static class
with methods for working with XML within Flex.
You do not create instances of XMLUtil;
instead you simply call static methods such as
the
XMLUtil.qnamesEqual() method.
public static function createXMLDocument(str:String):XMLDocument
Creates XML out of the specified string, ignoring whitespace.
This method is used to create objects defined in
<mx:XML> tags and WebService requests,
although they, in turn, get the firstChild
of the structure.
Parameters
Returns
public static function qnamesEqual(qname1:QName, qname2:QName):Boolean
Returns true if the two QName parameters have identical
uri and localName properties.
Parameters
| qname1:QName — First QName object.
|
| |
| qname2:QName — Second QName object.
|
Returns
| Boolean —
true if the two QName parameters have identical
uri and localName properties.
|
public static function qnameToString(qname:QName):String
Returns the concatenation of a Qname object's
uri and localName properties,
separated by a colon.
If the object does not have a uri property,
or the value of uri is the empty string,
returns the localName property.
Parameters
| qname:QName — QName object.
|
Returns
| String —
Concatenation of a Qname object's
uri and localName properties,
separated by a colon.
|
© 2004-2006 Adobe Systems Incorporated. All rights reserved.
Fri Mar 16 2007, 2:46 PM GMT-07:00