Lightweight E4X XML processing in Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dmc_lua
spec
.gitignore
LICENSE
README.md
Snakefile

README.md

Overview

lua_e4x is an implementation of E4X for sane XML navigation in Lua. The API is modeled closely after the one for Adobe e4x (see references).

Requires: lua-error, lua-files, lua-objects, lua-utils (all included)

Usage

Searching via Dot Traversal

xml.book  -- searches all children of the XML root for `book` elements.

xml.book.title  -- searches all children of each `book` result for `title` child-elements and returns those results, and so on.

xml.book[1].author  -- only searches the first `book` element for any `author` child-elements.

More Info

Documentation

http://docs.davidmccuskey.com/

Examples

There are a lot of examples found in the test dir. There is also a micro example on the documentation website.

References