Merge pull request #5550 from civicrm/4.5
[civicrm-core.git] / CRM / Core / CodeGen / Util / Xml.php
CommitLineData
5e434adf
ARW
1<?php
2
b5c2afd0
EM
3/**
4 * Class CRM_Core_CodeGen_Util_Xml
5 */
5e434adf
ARW
6class CRM_Core_CodeGen_Util_Xml {
7 /**
6a0b768e
TO
8 * @param string $file
9 * Path to input.
5e434adf
ARW
10 *
11 * @return SimpleXMLElement|bool
12 */
00be9182 13 public static function parse($file) {
5e434adf
ARW
14 $dom = new DomDocument();
15 $dom->load($file);
16 $dom->xinclude();
17 $xml = simplexml_import_dom($dom);
18 return $xml;
19 }
96025800 20
5e434adf 21}