Generated: Monday, November 14, 2011, 09:21:37 | Copyright © 2011, Kurt Nørmark |
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: Monday, November 14, 2011, 09:21:37