|
|
@@ -11,7 +11,10 @@ Lib::loadClass('Core_XmlWriter');
|
|
|
class XML {
|
|
|
|
|
|
public static function xmlToArray($xml) {
|
|
|
-
|
|
|
+ $z = new XMLReader();
|
|
|
+ if (!$z) throw new HttpException("Class XMLReader not installed", 500);
|
|
|
+ if (!$z->xml($xml)) throw new Exception("Failed to parse xml", 500);
|
|
|
+ return self::xmlReadToArray($z);
|
|
|
}
|
|
|
|
|
|
public static function readXmlFileToArray($filePath) {
|