SLING-12459 - Redirect sonarcloud notifications to commits@apache.sling.org
1 file changed
tree: 0e40e5b2faa5af7d16151f3346d1f41467cce207
  1. src/
  2. .asf.yaml
  3. .git-blame-ignore-revs
  4. .gitignore
  5. .sling-module.json
  6. CODE_OF_CONDUCT.md
  7. CONTRIBUTING.md
  8. Jenkinsfile
  9. LICENSE
  10. pom.xml
  11. README.md
README.md

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;