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