Validates HL7 version 2 messages encoded according to the HL7 XML Encoding Syntax against XML schemas provided by hl7.org.
The XML schema to validate against is determined as follows:
- if the XML document contains a schemaLocation that points to a valid file, this file is assumed to contain the schema definition
- the location configured using {@link #setSchemaLocations(Map)}
The validation fails, if
- no valid schema file could be found
- the default namespace of the XML document is not
urn:hl7-org:v2xml
- the document does not validate against the XML schema file foudn as described above
@author Nico Vannieuwenhuyze
@author Christian Ohr