projects
/
civicrm-core.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
manual merge of fixes for CRM-13981
[civicrm-core.git]
/
CRM
/
Core
/
CodeGen
/
Util
/
Xml.php
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
}