Xerces error when validating with a DTD

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 46

Xerces error when validating with a DTD

Mon Mar 11, 2013 9:49 pm

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.

[1] http://diglib.lib.utk.edu/dlc/standards ... ixlite.dtd
Posts: 456

Re: Xerces error when validating with a DTD

Tue Mar 12, 2013 9:10 pm


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.

Costin Sandoi
oXygen XML Editor and Author Support
Posts: 46

Re: Xerces error when validating with a DTD

Tue Mar 12, 2013 10:40 pm

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


Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 1 guest