static function RecurseXmlObjToArr($obj, &$arr)
	{
		$children = $obj->children();
		foreach ($children as $elementName => $node)
		{
			$nextIdx = count($arr);
			$arr[$nextIdx] = array();
			$arr[$nextIdx]['@name'] = strtolower((string)$elementName);
			$arr[$nextIdx]['@attributes'] = array();
			$attributes = $node->attributes();
			foreach ($attributes as $attributeName => $attributeValue)
			{
				$attribName = strtolower(trim((string)$attributeName));
				$attribVal = trim((string)$attributeValue);
				$arr[$nextIdx]['@attributes'][$attribName] = $attribVal;
			}
			$text = (string)$node;
			$text = trim($text);
			if (strlen($text) > 0)
			{
				$arr[$nextIdx]['@text'] = $text;
			}
			$arr[$nextIdx]['@children'] = array();
			VerySimpleXmlUtil::RecurseXmlObjToArr($node, $arr[$nextIdx]['@children']);
		}
		return;
	}
static function RecurseXmlObjToArr($obj, &$arr)
	{
		$children = $obj->children();
		foreach ($children as $elementName => $node)
		{
			$nextIdx = count($arr);
			$arr[$nextIdx] = array();
			$arr[$nextIdx]['@name'] = strtolower((string)$elementName);
			$arr[$nextIdx]['@attributes'] = array();
			$attributes = $node->attributes();
			foreach ($attributes as $attributeName => $attributeValue)
			{
				$attribName = strtolower(trim((string)$attributeName));
				$attribVal = trim((string)$attributeValue);
				$arr[$nextIdx]['@attributes'][$attribName] = $attribVal;
			}
			$text = (string)$node;
			$text = trim($text);
			if (strlen($text) > 0)
			{
				$arr[$nextIdx]['@text'] = $text;
			}
			$arr[$nextIdx]['@children'] = array();
			VerySimpleXmlUtil::RecurseXmlObjToArr($node, $arr[$nextIdx]['@children']);
		}
		return;
	}
static function RecurseXmlObjToArr ( $ obj , & $ arr ) { $ children = $ obj -> children ( ) ; foreach ( $ children as $ elementName => $ node ) { $ nextIdx = count ( $ arr ) ; $ arr [ $ nextIdx ] = array ( ) ; $ arr [ $ nextIdx ] [ '@name' ] = strtolower ( ( string ) $ elementName ) ; $ arr [ $ nextIdx ] [ '@attributes' ] = array ( ) ; $ attributes = $ node -> attributes ( ) ; foreach ( $ attributes as $ attributeName => $ attributeValue ) { $ attribName = strtolower ( trim ( ( string ) $ attributeName ) ) ; $ attribVal = trim ( ( string ) $ attributeValue ) ; $ arr [ $ nextIdx ] [ '@attributes' ] [ $ attribName ] = $ attribVal ; } $ text = ( string ) $ node ; $ text = trim ( $ text ) ; if ( strlen ( $ text ) > 0 ) { $ arr [ $ nextIdx ] [ '@text' ] = $ text ; } $ arr [ $ nextIdx ] [ '@children' ] = array ( ) ; VerySimpleXmlUtil :: RecurseXmlObjToArr ( $ node , $ arr [ $ nextIdx ] [ '@children' ] ) ; } return ; }
This is method RecurseXmlObjToArr

@param mixed $obj This is a description
@param mixed $arr This is a description
@return mixed This is the return value description
This is method RecurseXmlObjToArr