class CRM_Utils_XML

Methods

static array
parseFile($file)

Read a well-formed XML file

static array
parseString($string)

Read a well-formed XML file

static string
formatErrors($errors)

No description

static array
xmlObjToArray($obj)

Convert an XML element to an array.

Details

at line 42
static array parseFile($file)

Read a well-formed XML file

Parameters

$file

Return Value

array (0 => SimpleXMLElement|FALSE, 1 => errorMessage|FALSE)

at line 74
static array parseString($string)

Read a well-formed XML file

Parameters

$string

Return Value

array (0 => SimpleXMLElement|FALSE, 1 => errorMessage|FALSE)

at line 98
static protected string formatErrors($errors)

Parameters

$errors

Return Value

string

at line 128
static array xmlObjToArray($obj)

Convert an XML element to an array.

Parameters

$obj SimpleXMLElement.

Return Value

array