Apache Sling Content Parser for XML

Clone this repo:
  1. 7481cad SLING-12282 Update Dependencies to 2023 (#2) by Stefan Seifert · 10 days ago master
  2. 4ca3c86 SLING-12281 ignore spotless code reformatting commit in git blame by Stefan Seifert · 10 days ago
  3. 5af3f77 SLING-12281 apply spotless code formatting by Stefan Seifert · 10 days ago
  4. edc6f84 SLING-12281 Update to Parent 60, Java 11 Minimum Version by Stefan Seifert · 10 days ago
  5. 81f9fd2 SLING-12102 Content Parser: Update to Parent 52 by Stefan Seifert · 6 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;