Pacotemx.utils
Classepublic class XMLUtil
HerançaXMLUtil 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.



Propriedades Públicas
 PropriedadeDefinido por
 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
Métodos Públicos
 MétodoDefinido por
  
[static] Creates XML out of the specified string, ignoring whitespace.
XMLUtil
  
[static] Returns the XML value of an attribute matching the given QName
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
Detalhes do método
createXMLDocument()método
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.

Parâmetros

str:String — XML string.

Retorna
XMLDocument — New XML object that ignored whitespace.
getAttributeByQName()método 
public static function getAttributeByQName(xml:XML, attrQName:QName):XMLList

Returns the XML value of an attribute matching the given QName

Parâmetros

xml:XML — the XML object being inspected
 
attrQName:QName — the QName of the attribute to find

Retorna
XMLList — XMLList of matching attributes or an empty list if none are found.
qnamesEqual()método 
public static function qnamesEqual(qname1:QName, qname2:QName):Boolean

Returns true if the two QName parameters have identical uri and localName properties.

Parâmetros

qname1:QName — First QName object.
 
qname2:QName — Second QName object.

Retorna
Booleantrue if the two QName parameters have identical uri and localName properties.
qnameToString()método 
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.

Parâmetros

qname:QName — QName object.

Retorna
String — Concatenation of a Qname object's uri and localName properties, separated by a colon.