Apache Sling Content Parser for XML

Clone this repo:
  1. 5598780 SLING-12866 - Restrict force pushes, auto-delete branches on merge by Robert Munteanu · 4 weeks ago master
  2. 094eb78 SLING-12459 - Redirect sonarcloud notifications to commits@apache.sling.org by Robert Munteanu · 10 months ago
  3. 7481cad SLING-12282 Update Dependencies to 2023 (#2) by Stefan Seifert · 1 year, 5 months ago
  4. 4ca3c86 SLING-12281 ignore spotless code reformatting commit in git blame by Stefan Seifert · 1 year, 5 months ago
  5. 5af3f77 SLING-12281 apply spotless code formatting by Stefan Seifert · 1 year, 5 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;