======XMLValue(XML_text, XPath) ======
Category:  Web function

\\ 
=====Description=====
This function extracts a single value or an XML node from a node specified by [[https://en.wikipedia.org/wiki/XPath|XPath]]. 

\\ 
=====Arguments=====
^Argument^Type^Description^
|XML_text | Text |A string representing an XML node.  |
|JSONPath  |Text |The value or an XML node to be returned.  |
**Return value type:** Any (The type of the value being returned.)

\\ 
=====Remarks=====
Note that EasyMorph uses a simplified version of XPath. 

Namespaces are not supported.

\\ 
=====Examples=====
  xmlvalue("<CUSTOMER><ID>345</ID></CUSTOMER>", "CUSTOMER/ID")   //Returns 345

  xmlvalue("<CUSTOMER><ID>345</ID></CUSTOMER>", "CUSTOMER")  //Returns '<ID>345</ID>'

\\ 
=====See also=====
  * [[syntax:functions:isxml|IsXML(text)]]
  * [[syntax:functions:jsonvalue|JSONValue(JSON_text, JSONPath)]]
