Read XML file with Javascript.

Empty values (missing subnodes) are handled with try...catch.

HTML validate with w3 and wdg validtors. XML validated with xmlstarlet.

Code has a lot of commented out console.log() for firebug users. For some setups, you can only use firebug with file:// protocol or get weird errors (bug 422120).

Copyright 2008 Tero Karvinen http://www.iki.fi/karvinen