Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-720

Enable validation when no namespace information is present in the XML

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • servicemix-validation
    • None
    • checked and tested with FuseESB4.2RC1 and 4.2-final

    • Patch Available

    Description

      The sm-validation component is only able to validate against a XML schema if there are schema informations available in the XML document. If not, validation fails.

      This can be circumvent by using the property external-noNamespaceSchemaLocation to provide a schema definition for elemens with no namespace prefix. By using this way (by means of new property), all document types can be validated.

      Attachments

        1. ValidationEndpoint.java
          15 kB
          Axel Irriger

        Activity

          People

            jb@nanthrax.net Jean-Baptiste Onofré
            irrigeraxel Axel Irriger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: