Changes between Version 2 and Version 3 of XPath


Ignore:
Timestamp:
2018-07-02 22:42:39 (6 years ago)
Author:
will.schneider
Comment:

added instructions for installing the module and using it

Legend:

Unmodified
Added
Removed
Modified
  • XPath

    v2 v3  
    44[http://www.keplerproject.org/luaexpat/ LuaExpat] is installed in the standard MIOS software.  This Lua extension lets you create SAX-based XML parsers in Lua.  [http://www.keplerproject.org/luaexpat/lom.html LOM] is one of these parsers is included in the !LuaExpat package.  Given a XML document, LOM creates a nested table structure that replicates the XML structure. 
    55 
    6 LuaXPath is a utility function that lets you use [http://www.w3.org/TR/xpath XPath] expressions to query a LOM object. 
     6LuaXPath 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=== Sample Code === 
    79 
    810{{{