Package | sekati.utils |
Class | public class XMLUtil |
See also
Method | Defined by | ||
---|---|---|---|
XMLUtil()
XMLUtil Static Constructor
| XMLUtil | ||
byAttribute(x:XMLList, attr:String, value:String):XML
[static]
Get the first attribute/value pair match from the XMLList.
| XMLUtil | ||
isValidXML(data:String):Boolean
[static]
Checks whether the specified string is valid and well formed XML.
| XMLUtil |
Constant | Defined by | ||
---|---|---|---|
ATTRIBUTE : String = "attribute" [static]
Constant representing an attribute type returned from XML.nodeKind.
| XMLUtil | ||
COMMENT : String = "comment" [static]
Constant representing a comment node type returned from XML.nodeKind.
| XMLUtil | ||
ELEMENT : String = "element" [static]
Constant representing a element type returned from XML.nodeKind.
| XMLUtil | ||
PROCESSING_INSTRUCTION : String = "processing-instruction" [static]
Constant representing a processing instruction type returned from XML.nodeKind.
| XMLUtil | ||
TEXT : String = "text" [static]
Constant representing a text node type returned from XML.nodeKind.
| XMLUtil |
XMLUtil | () | constructor |
public function XMLUtil()
XMLUtil Static Constructor
byAttribute | () | method |
public static function byAttribute(x:XMLList, attr:String, value:String):XML
Get the first attribute/value pair match from the XMLList.
Parametersx:XMLList |
|
attr:String |
|
value:String |
XML |
var data : XML = new XML( '' ); trace( XMLUtil.byAttribute( data.stuff. 'id', '1' ) ); - zero
- one
- two
isValidXML | () | method |
public static function isValidXML(data:String):Boolean
Checks whether the specified string is valid and well formed XML.
Parametersdata:String — The string that is being checked to see if it is valid XML.
|
Boolean — A Boolean value indicating whether the specified string is
valid XML.
|
ATTRIBUTE | constant |
public static const ATTRIBUTE:String = "attribute"
Constant representing an attribute type returned from XML.nodeKind.
See also
COMMENT | constant |
public static const COMMENT:String = "comment"
Constant representing a comment node type returned from XML.nodeKind.
See also
ELEMENT | constant |
public static const ELEMENT:String = "element"
Constant representing a element type returned from XML.nodeKind.
See also
PROCESSING_INSTRUCTION | constant |
public static const PROCESSING_INSTRUCTION:String = "processing-instruction"
Constant representing a processing instruction type returned from XML.nodeKind.
See also
TEXT | constant |
public static const TEXT:String = "text"
Constant representing a text node type returned from XML.nodeKind.
See also