You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Rob Outar <ro...@ideorlando.org> on 2002/04/10 15:14:09 UTC

Can someone explain this please

We have an XML repository where wee have all DTD's and Schemas in one
directory, and the xml files in various other directories.  When we validate
we create an InputSource for the XML file, and then set the systemID, this
works for XML Schemas, but for DTD's we get this:

Stopping after fatal error: The markup in the document following the root
element must be well-formed.

if we change setSystemID to setPublicID the xml file seems to validate just
fine.

I don't get it, I thought by setting the systemID it would tell it where to
look for the Schema or DTD.

Let me know.

Thanks,

Rob

RE: Can someone explain this please

Posted by Rob Outar <ro...@ideorlando.org>.
We have an XML repository where wee have all DTD's and Schemas in one
directory, and the xml files in various other directories.  When we validate
we create an InputSource for the XML file, and then set the systemID, this
works for XML Schemas, but for DTD's we get this:

  Stopping after fatal error: The markup in the document following the root
element must be well-formed.

  if we change setSystemID to setPublicID the xml file seems to validate
just fine.

  I don't get it, I thought by setting the systemID it would tell it where
to look for the Schema or DTD.

  Let me know.

  Thanks,

  Rob