適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.utils 

XMLUtil  - AS3 Flex

套件mx.utils
類別public class XMLUtil
繼承XMLUtil Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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.



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
公用方法
 方法定義自
  
[靜態] Creates XML out of the specified string, ignoring whitespace.
XMLUtil
  
[靜態] Returns the XML value of an attribute matching the given QName
XMLUtil
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
  
qnamesEqual(qname1:QName, qname2:QName):Boolean
[靜態] Returns true if the two QName parameters have identical uri and localName properties.
XMLUtil
  
[靜態] Returns the concatenation of a Qname object's uri and localName properties, separated by a colon.
XMLUtil
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
方法詳細資訊

createXMLDocument

()方法
public static function createXMLDocument(str:String):XMLDocument

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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.

參數

str:String — XML string.

傳回值
XMLDocument — New XML object that ignored whitespace.

getAttributeByQName

()方法 
public static function getAttributeByQName(xml:XML, attrQName:QName):XMLList

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Returns the XML value of an attribute matching the given QName

參數

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

傳回值
XMLList — XMLList of matching attributes or an empty list if none are found.

qnamesEqual

()方法 
public static function qnamesEqual(qname1:QName, qname2:QName):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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

參數

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

傳回值
Booleantrue if the two QName parameters have identical uri and localName properties.

qnameToString

()方法 
public static function qnameToString(qname:QName):String

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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.

參數

qname:QName — QName object.

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




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。