Commit | Line | Data |
---|---|---|
5e434adf ARW |
1 | <?php |
2 | ||
3 | class CRM_Core_CodeGen_Util_Xml { | |
4 | /** | |
5 | * @param string $file path to input | |
6 | * | |
7 | * @return SimpleXMLElement|bool | |
8 | */ | |
9 | static function parse($file) { | |
10 | $dom = new DomDocument(); | |
11 | $dom->load($file); | |
12 | $dom->xinclude(); | |
13 | $xml = simplexml_import_dom($dom); | |
14 | return $xml; | |
15 | } | |
16 | } |