Changes between Version 3 and Version 4 of XPath


Ignore:
Timestamp:
2018-07-02 22:46:03 (14 months ago)
Author:
will.schneider
Comment:

added warning about complex expressions

Legend:

Unmodified
Added
Removed
Modified
  • XPath

    v3 v4  
    55 
    66LuaXPath is a utility function that lets you use [http://www.w3.org/TR/xpath XPath] expressions to query a LOM object.  In order to use xpath you must add the attached xpath.lua file to your Vera Controller.  The easiest way to do this is to upload the file under the develop apps section of the interface.  Once uploaded the below sample code can be used to prototype your specific needs. 
     7 
     8''It should be noted that more complex XPath expressions may not work with this module.  Specifically, wildcards that are mid-expression may fail to evaluate. Generally, the XPath expression should terminate with a node, text(), value() or wildcard (*).''  
    79 
    810=== Sample Code ===