Packagemx.utils
Classpublic class XMLUtil
InheritanceXMLUtil Inheritance Object

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 Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
  
[static] Creates XML out of the specified string, ignoring whitespace.
XMLUtil
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
qnamesEqual(qname1:QName, qname2:QName):Boolean
[static] Returns true if the two QName parameters have identical uri and localName properties.
XMLUtil
  
[static] Returns the concatenation of a Qname object's uri and localName properties, separated by a colon.
XMLUtil
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Method detail
createXMLDocument()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
str:String — XML string.

Returns
XMLDocument — New XML object that ignored whitespace.
qnamesEqual()method 
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
Booleantrue if the two QName parameters have identical uri and localName properties.
qnameToString()method 
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.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/2/langref/mx/utils/XMLUtil.html