User Tools

Site Tools


syntax:functions:xmlvalue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
syntax:functions:xmlvalue [2019/10/30 20:11]
dmitry
syntax:functions:xmlvalue [2021/09/18 21:14] (current)
craigt
Line 1: Line 1:
-=====xmlvalue(XML_text, XPath)=====+======XMLValue(XML_text, XPath) =====
 +Category:  Web function
  
-Extracts a single value or an XML node from a node specified by [[https://en.wikipedia.org/wiki/XPath|XPath]]. +\\  
 +=====Description===== 
 +This function extracts a single value or an XML node from a node specified by [[https://en.wikipedia.org/wiki/XPath|XPath]]. 
  
-Note that EasyMorh uses a simplified version or 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. Namespaces are not supported.
  
-**Example** +\\  
-^  Expression  ^  Result  ^ +=====Examples===== 
-xmlvalue("<CUSTOMER><ID>345</ID></CUSTOMER>", "CUSTOMER/ID"  |  345 | +  xmlvalue("<CUSTOMER><ID>345</ID></CUSTOMER>", "CUSTOMER/ID"  //Returns 345 
-xmlvalue("<CUSTOMER><ID>345</ID></CUSTOMER>", "CUSTOMER"  |<ID>345</ID> |+ 
 +  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)]]
  
-**See also** 
-  * [[syntax:functions:isxml]] 
-  * [[syntax:functions:jsonvalue]] 
syntax/functions/xmlvalue.txt · Last modified: 2021/09/18 21:14 by craigt