Xerces error when validating with a DTD

This should cover W3C XML Schema, Relax NG and DTD related problems.
bds
Posts: 47
Joined: Mon Jun 26, 2006 10:40 pm

Xerces error when validating with a DTD

Post by bds »

Hi all,

I'm running into an odd problem and I hope someone here can steer me in the right direction.

I have number of TEI XML documents that I want to validate with a DTD [1]. If I try to validate one of the XML documents against the DTD using Document > Validate > Validate (Ctrl+Shift+V), I get the following error:

Code: Select all

System ID: /usr/home/bds/Documents/tdh-test/all-tdh/sc/sc242.xml
Main validation file: /usr/home/bds/Documents/tdh-test/all-tdh/sc/sc242.xml
Scenario name: all-tdh-XML-validation-1
Engine name: Xerces
Severity: fatal
Description: The markup declarations contained or pointed to by the document type declaration must be well-formed.
Start location: 2:1
Length: 3
If I use the Document > Validate > Validate with... dialog & input the URL [1], the document validates without any error messages. I have several hundred documents to validate & wanted to apply the validation to the project.

Please let me know if there is additional info I can provide!
Thanks for your time & trouble.
Best,
bds

[1] http://diglib.lib.utk.edu/dlc/standards ... ixlite.dtd
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Xerces error when validating with a DTD

Post by Costin »

Hello,

As you do not get the error when you validate by invoking the "Validate with..."
action, then the first thing you should do would be to double check your validation scenario, see if everything is set OK there and let us know if the problem is of other kind.

This is because you have a validation scenario associated, called all-tdh-XML-validation-1, as also noticeable from the error code.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
bds
Posts: 47
Joined: Mon Jun 26, 2006 10:40 pm

Re: Xerces error when validating with a DTD

Post by bds »

Costin,
thanks for the reply & apologies for the noise. I've corrected the issue and validation works.

Best,
BDS
Post Reply