Check for conformance to the XML 1.0 character set?

Are you missing a feature? Request it's implementation here.
mhGLEIF
Posts: 42

Check for conformance to the XML 1.0 character set?

Thu Mar 09, 2017 5:15 pm

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: 5872

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

Thu Mar 09, 2017 5:19 pm

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: 42

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

Thu Mar 09, 2017 6:40 pm

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: 2461

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

Thu Mar 09, 2017 7:26 pm

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

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 1 guest