Hi!
I’m working on PIX ITI-45 and just got a problem with validating response.
I’ve checked published examples:
the simples way:
String response =
[...]
" <providerOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">\n" +
" <id root=\"1.2.840.114350.1.13.99998.8734\"/>\n" +
" <name>Good Health Clinic</name>\n" +
" <contactParty classCode=\"CON\">\n" +
" <telecom value=\"tel:+1-342-555-8394\"></telecom>\n" +
" </contactParty>\n" +
" </providerOrganization>\n" +
[...]
"</PRPA_IN201310UV02>";
new CombinedXmlValidator().validate(response, PIXV3.Interactions.ITI_45.getResponseValidationProfile());
and got a message:
Caused by: org.openehealth.ipf.commons.core.modules.api.ValidationException: org.xml.sax.SAXParseException; lineNumber: 56; columnNumber: 60; cvc-complex-type.2.3: Element 'name' cannot have character [children], because the type's content type is element-only.
cvc-complex-type.2.3: Element 'name' cannot have character [children], because the type's content type is element-only.
This message concerns node <name>Good Health Clinic</name>
What is wrong? Examples? Or validator?
Full source attached.
Thomas