Generated: Wednesday, June 16, 2010, 13:59:16 Copyright © 2010, Kurt Nørmark The local LAML software home page

The LAML XML parser examples

Below we show a couple of examples of XML files and parsing scripts that produce the internal LAML document representations (abstract parse trees - ASTs).

XML file Parsing script File with AST
time.xml parse-xml-time.laml time.lsp
A real life XHTML file parse-laml-link-checking.laml link-checking.lsp

Notice that the parsing of the XHTML file in the second example also validates the XHTML document relative to the validation predicates of the XHTML mirror in LAML.

 

Generated: Wednesday, June 16, 2010, 13:59:16