Apache Sling Content Parser for XML

Clone this repo:
  1. 094eb78 SLING-12459 - Redirect sonarcloud notifications to commits@apache.sling.org by Robert Munteanu · 3 weeks ago master
  2. 7481cad SLING-12282 Update Dependencies to 2023 (#2) by Stefan Seifert · 8 months ago
  3. 4ca3c86 SLING-12281 ignore spotless code reformatting commit in git blame by Stefan Seifert · 8 months ago
  4. 5af3f77 SLING-12281 apply spotless code formatting by Stefan Seifert · 8 months ago
  5. edc6f84 SLING-12281 Update to Parent 60, Java 11 Minimum Version by Stefan Seifert · 8 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;