Zend\Json\Json::_getXmlValue
Return the value of an XML attribute text or the text between the XML tags
In order to allow Zend\Json\Expr from xml, we check if the node matches the pattern that try to detect if it is a new Zend\Json\Expr if it matches, we return a new Zend\Json\Expr instead of a text node
Signature
protected function _getXmlValue(SimpleXMLElement
$simpleXmlElementObject )
Parameters
$simpleXmlElementObject
— object
Returns
- Expr|string