Check for conformance to the XML 1.0 character set?

Are you missing a feature? Request its implementation here.
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

Check for conformance to the XML 1.0 character set?

Post 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?
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

Hi Michael,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

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

Post 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?
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply