Packageorg.openPyro.utils
Classpublic class XMLUtil

A collection of Utility methods for working with XML



Public Methods
 MethodDefined by
  
isItemParentOf(item:XML, newNode:XML):Boolean
[static] Returns a boolean whether the newNode exists anywhere deeper in the item node.
XMLUtil
  
sortXMLByAttribute($xml:XML, $attribute:String, $options:Object = null, $copy:Boolean = false):XML
[static]
XMLUtil
Method detail
isItemParentOf()method
public static function isItemParentOf(item:XML, newNode:XML):Boolean

Returns a boolean whether the newNode exists anywhere deeper in the item node. For example to find node

   one 
   
in something like
   
      
       
    `    
         one
        
      
      
    
   

Parameters
item:XML
 
newNode:XML

Returns
Boolean
sortXMLByAttribute()method 
public static function sortXMLByAttribute($xml:XML, $attribute:String, $options:Object = null, $copy:Boolean = false):XMLParameters
$xml:XML
 
$attribute:String
 
$options:Object (default = null)
 
$copy:Boolean (default = false)

Returns
XML