You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Sebastien Ponce <se...@cern.ch> on 2001/01/23 14:10:13 UTC

Re: I need to assign a DTD header to a Document. Impossible?

Guoliang Cao wrote:

> Now  I  get a XML Document from using xalan to do transformation.  I
> need to validate it against DTD.  Schema is too powerful for what I
> want. That's the reason why I prefer DTD here.  However, after reading
> some posts, it seems not easy to assign a DTD header to an existed
> Document object. Perhaps there is a way :   serialize the document to a
> string,  insert dtd stuff to the string,  validate it.  But I'm more
> interested in a better approach that operates on the Document
> directly.   Help appreciated!!!

I'm having the same problem and I can't find a solution. Let me know if
you find something.

Sebastien