Apache Sling Content Parser for XML

Clone this repo:
  1. 0b69161 Adding sonarqube badges as per SLING-9682 by Dan Klco · 9 weeks ago master
  2. 8dc630f Updating badges for org-apache-sling-contentparser-xml by Radu Cotescu · 9 weeks ago
  3. 15332cb Updating badges for org-apache-sling-contentparser-xml by Radu Cotescu · 1 year, 3 months ago
  4. 20978b7 [maven-release-plugin] prepare for next development iteration by Radu Cotescu · 1 year, 3 months ago
  5. 840bfcb [maven-release-plugin] prepare release org.apache.sling.contentparser.xml-2.0.0 by Radu Cotescu · 1 year, 3 months ago org.apache.sling.contentparser.xml-2.0.0

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;