Contains utilities for working with XML objects.
public static function cdata(data:String):XML
Creates a CDATA section for the given data string.
Use this method if you need to create a CDATA section with a binding
expression in a literal XML declaration
Parameters
| data:String — the data string to create a CDATA section from.
|
Returns
| XML — a CDATA section for the data
|
public static function convertAttributeToNode(xml:XML, attribute:String):XML
Converts an attribute to a node.
Parameters
| xml:XML — the xml node that contains the attribute
|
| |
| attribute:String — the name of the attribute that will be converted to a node
|
Returns
| XML — the passed in xml node with the specified attribute converted to a node
|
public static function isElementNode(xml:XML):Boolean
Returns if the given xml node is an element node.
Parameters
Returns
public static function isTextNode(xml:XML):Boolean
Returns if the given xml node is a text node.
Parameters
Returns
public static const ELEMENT_NODE_KIND:String = "element"
public static const TEXT_NODE_KIND:String = "text"
Prana Framework 0.5 - 2008