(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package APS * @version $Id$ */ function getXPathValue($xmlobj = null, $path = null, $single = true) { $result = null; $tmpxml = new DynamicProperties; $tmpxml = ($xmlobj->xpath($path)) ? $xmlobj->xpath($path) : false; if($result !== false) { $result = ($single == true) ? (string)$tmpxml[0] : $tmpxml; } return $result; }