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 Anthony Saucet <an...@freesbee.fr> on 2003/04/14 16:44:37 UTC

XMLDTDValidator to validate a DOM tree ?

I'm making an interface to build xml files. I want these files 
corresponding to a DTD structure.
I've heard it's not possible to validate a DOM tree in memory, and I 
have to serialize it then validate it.
I've just discovered "org.apache.xerces.impl.dtd.XMLDTDValidator".Can I 
validate this DOM tree using this?
How to do it?

Many thanks
anthony


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


RE: XMLDTDValidator to validate a DOM tree ?

Posted by Rahul Srivastava <rs...@firstam.com>.
Hi Anthony,

Revalidating an in-memory DOM against DTD is not yet implemented.
See: http://xml.apache.org/xerces2-j/faq-dom.html#faq-7

Cheers,
Rahul.


 > -----Original Message-----
 > From: Anthony Saucet [mailto:anthony.saucet@freesbee.fr]
 > Sent: Monday, April 14, 2003 8:15 PM
 > To: xercer-users
 > Subject: XMLDTDValidator to validate a DOM tree ?
 > 
 > 
 > I'm making an interface to build xml files. I want these files 
 > corresponding to a DTD structure.
 > I've heard it's not possible to validate a DOM tree in memory, and I 
 > have to serialize it then validate it.
 > I've just discovered "org.apache.xerces.impl.dtd.XMLDTDValidator".Can I 
 > validate this DOM tree using this?
 > How to do it?
 > 
 > Many thanks
 > anthony
 > 
 > 
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
 > For additional commands, e-mail: xerces-j-user-help@xml.apache.org
 > 
 > 


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