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 Arpad KATONA <a....@ever-team.com> on 2002/09/25 08:22:55 UTC

Validation XML against XSD/DTD with Xerces-J

Hello,

it's probably the dummiest mail that has been ever sent to this list; sorry,
but there are beginners in the world of xml... and in the english language
too... :-)

It seems that with Xerces (2.1.0) it's possible to validate xml-data against a
xsd or dtd description. The task is the following : there is a String that
contains xml-data. These data may or may not contain a reference to a xsd or
dtd description (i.e. there may be a xsi:noNamespaceSchemaLocation attribute or
a <!DOCTYPE ...> tag in that data, but it can happen that there is no such
reference in the xml-data.) And there is a xsd or dtd file containing a
description. The task is to say wheter the xml-data correspond to the
description or not. Could you send to me (or indicate the emplacement of) a
Xerces sample-code that performs this validation? The Xerces-"doc" is not clear
to me at all: there is much palaver about "pipelines" and and "parser
configuration" and interfaces and all that, one can think that the whole thing
consists of only empty and emptier interfaces (i.e. "pipeau" for them who speak
french... :-) But there is nothing concrete in the "doc", a working
sample-code, for exemple, that is why i'm asking for your help...

Thanks

Arpad Katona
--
a.katona@ever-team.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org