I have just joined this discussion group so pardon me if I am suggesting
something that has previously been discussed...

I am going to use the term "DTD" but it should be interchangeable with
"schema" in my following discussion.

I would like to be able to validate a document against one or more DTD's
when the document itself contains no reference to a DTD.  For example, I
might make the following call:

doc.isValid("c:\documents\myDTD.dtd");

Alternatively, maybe I could pass the DTD to the parser and the parser would
use my DTD to validate the document.  In either case, any DTD referenced by
the document would be ignored.

Here is a possible scenario that would use this functionality:

1.  Parse and validate a document that references DTD1.
2.  If the document is valid, validate the document against DTD2.

In this scenario, DTD2 represents a subset of DTD1.

So, I basically want to be able to validate a document against any DTD
without having to create a copy of the document that references the desired
DTD.

Thoughts?  Is there some way to do this now and I have missed it?

eD



Ed Hager  [EMAIL PROTECTED]


Reply via email to