Page 1 of 1

Check for conformance to the XML 1.0 character set?

Posted: Thu Mar 09, 2017 5:15 pm
by mhGLEIF
Dear oxygen colleagues,

I’d like to check a large XML file for conformance to the XML 1.0 character set:

https://www.w3.org/TR/REC-xml/#charsets

Is this check bundled in with well-formedness and/or validation checks?

Or is there another feature somewhere in oxygen I can use?

Re: Check for conformance to the XML 1.0 character set?

Posted: Thu Mar 09, 2017 5:19 pm
by Radu
Hi Michael,

Yes, Oxygen's wellformedness check should cover this. And any schema-based validation also does wellformedness checks.

Regards,
Radu

Re: Check for conformance to the XML 1.0 character set?

Posted: Thu Mar 09, 2017 6:40 pm
by mhGLEIF
Radu wrote:Hi Michael,

Yes, Oxygen's wellformedness check should cover this. And any schema-based validation also does wellformedness checks.

Regards,
Radu
Just to close out this topic in my own mind - does this mean that an XML 1.1 file which contains some characters allowed in 1.1 but NOT in 1.0 will be well-formed but if I change the XML version declaration to 1.0 it will not?

Re: Check for conformance to the XML 1.0 character set?

Posted: Thu Mar 09, 2017 7:26 pm
by adrian
Hi,

Yes, that's correct. You can try with this:

Code: Select all

<?xml version="1.1" encoding="UTF-8"?>
<root>&#x1;</root>
If you switch to XML 1.0 it will fail the XML well-form check.

Regards,
Adrian