Packagecom.adobe.utils
Classpublic class XMLUtil



Public Methods
 MethodDefined by
  
getNextSibling(x:XML):XML
[static] Returns the next sibling of the specified node relative to the node's parent.
XMLUtil
  
getPreviousSibling(x:XML):XML
[static] Returns the sibling before the specified node relative to the node's parent.
XMLUtil
  
isValidXML(data:String):Boolean
[static] Checks whether the specified string is valid and well formed XML.
XMLUtil
Protected Methods
 MethodDefined by
  
getSiblingByIndex(x:XML, count:int):XML
[static]
XMLUtil
Public Constants
 ConstantDefined 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
Method detail
getNextSibling()method
public static function getNextSibling(x:XML):XML

Returns the next sibling of the specified node relative to the node's parent.

Parameters
x:XML — The node whose next sibling will be returned.

Returns
XML — The next sibling of the node. null if the node does not have a sibling after it, or if the node has no parent.
getPreviousSibling()method 
public static function getPreviousSibling(x:XML):XML

Returns the sibling before the specified node relative to the node's parent.

Parameters
x:XML — The node whose sibling before it will be returned.

Returns
XML — The sibling before the node. null if the node does not have a sibling before it, or if the node has no parent.
getSiblingByIndex()method 
protected static function getSiblingByIndex(x:XML, count:int):XMLParameters
x:XML
 
count:int

Returns
XML
isValidXML()method 
public static function isValidXML(data:String):Boolean

Checks whether the specified string is valid and well formed XML.

Parameters
data:String — The string that is being checked to see if it is valid XML.

Returns
Boolean — A Boolean value indicating whether the specified string is valid XML.
Constant detail
ATTRIBUTEconstant
public static const ATTRIBUTE:String = "attribute"

Constant representing an attribute type returned from XML.nodeKind.

See also

XML.nodeKind()
COMMENTconstant 
public static const COMMENT:String = "comment"

Constant representing a comment node type returned from XML.nodeKind.

See also

XML.nodeKind()
ELEMENTconstant 
public static const ELEMENT:String = "element"

Constant representing a element type returned from XML.nodeKind.

See also

XML.nodeKind()
PROCESSING_INSTRUCTIONconstant 
public static const PROCESSING_INSTRUCTION:String = "processing-instruction"

Constant representing a processing instruction type returned from XML.nodeKind.

See also

XML.nodeKind()
TEXTconstant 
public static const TEXT:String = "text"

Constant representing a text node type returned from XML.nodeKind.

See also

XML.nodeKind()