Home

Awesome

grappa-xml-parser

This is an experiment in creating a parser using the Grappa framework (formerly parboiled).

The parser reads a simplified variant of XML, which allows for some leniency in comparison to actual XML parsers:

A few examples of "XML documents" that are accepted by the parser

Omit the identifier of a closing tag
<a>Content <b/></>
Omit the value of an attribute
<a enabled>Content</a>

As the parser was created as an experiment, it doesn't include support for some of the more advanced aspects of XML, e.g. namespaces, doctype headers, xml declarations etc.

Please note that the project is intended as an example, and should never be used instead of an actual XML parsing component.