Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (19 sloc) 855 Bytes


A Java library for parsing and generating XCRI documents


  • Handles incorrect namespaces
  • Handles element names in the WRONG CaSe
  • Handles HTML in CDATA sections in descriptions, tries to convert to valid XHTML
  • Logs errors and tries to fix them rather than fail

Basic Usage

To parse an XML document and create a new Catalog object:

Catalog catalog = new Catalog();
SAXBuilder builder = new SAXBuilder();
Document document = File("src-test/test.xml"));

You can also output XCRI using JDOM:

new XMLOutputter().output(catalog.toXml(), out);

(For example, you can use XCRI4J as a preprocessor to attempt to clean up a feed)


Note that this ISN'T FINISHED! Please fork it and add missing parts :-)

Something went wrong with that request. Please try again.