I am not aware of an xml lib that provides a simple access in Lua. What you could consider however is to use Lua Expat  and use this to create a dom like access pattern that matches exactly your needs. I think the required code for this would be acceptably short and simple. It would probably come closer to your actual needs than any existing library.
I've got some legacy code I would like to port to Lua, and I'm
wondering if there's an XML parser which exposes a DOM-like API
because the legacy code uses such an API from an other programming
language. The Wiki does not appear to helpful in this regard (lots of
Any suggestions? Has anybody tried to use gdome2 or Xerces, possibly
with LuaJIT FFI?