Hello,
I have the code, exactly like on the OH docs site:
[XPath - Transformation Services | openHAB] XPath - Transformation Services | openHAB)
so my code is like folowing:
var Temperature_xml = '<?xml version="1.0" encoding="UTF-8"?><PTZStatus version="2.0" ><AbsoluteHigh><elevation>0</elevation><azimuth>450</azimuth><absoluteZoom>10</absoluteZoom></AbsoluteHigh></PTZStatus>';
var mytest = transform("XPATH", "/*[name()='PTZStatus']/*[name()='AbsoluteHigh']/*[name()='azimuth']/text()", Temperature_xml.toString);
logInfo("mytest", "mytest: {}", mytest);
what I’m doing wrong becuse the result is whole XML value like in var Temperature_xml - it’s not parsing