Apache Sling Content Parser for XML

Clone this repo:
  1. 9801fe2 SLING-11709 - Set up Jira autolinks to all Sling Github projects by Robert Munteanu · 8 weeks ago master
  2. 85b3bb4 SLING-11051 - Fixing JavaDoc badge by Dan Klco · 1 year, 5 months ago
  3. 9c358be SLING-10676 - remove SECURITY.md which is not needed by Bertrand Delacretaz · 1 year, 10 months ago
  4. bcd1d81 SLING-10676 - add or update SECURITY.md by Bertrand Delacretaz · 1 year, 10 months ago
  5. 3a21510 SLING-10676 - add or update SECURITY.md by Bertrand Delacretaz · 1 year, 10 months ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central contentparser License

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;