SLING-8570 - Extract a generic Content Parser API from org.apache.sling.jcr.contentparser with pluggable implementations

* completely decoupled the API from implementations - the ContentParser API
doesn't suggest any content types any more
* removed JSON specific parser options from the ParserOptions class
* made the ParserOptions class extendable
* switched exported API packages to version 2.0.0, to eliminate all possible
confusion with the older org.apache.sling.jcr.contentparser API
3 files changed
tree: 02f390e1a1ccd33f92680dd75611c4f236016f67
  1. src/
  2. .gitignore
  3. CODE_OF_CONDUCT.md
  4. CONTRIBUTING.md
  5. LICENSE
  6. pom.xml
  7. README.md
README.md

Apache Sling Content Parser for XML

This module is part of the Apache Sling project.

The Apache Sling Content Parser for XML provides support for parsing XML files into Apache Sling resource trees, by implementing the API provided by the org.apache.sling.contentparser.api bundle.

To obtain a reference to the XML content parser just filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE service registration property:

    @Reference(target = "(" + ContentParser.SERVICE_PROPERTY_CONTENT_TYPE + "=xml)")
    private ContentParser xmlParser;