Notes on Reference Citations - Version 2.71, by Dr. Herong Yang
checking DTD when writing XML
'DOMValidator.java - Validating XML with DTD using DOM' tutorial was cited in a JavaKB forum post in 2009.
The DOMValidator.java - Validating XML with DTD using DOM tutorial was cited in a JavaKB forum post in 2009.
Subject: checking DTD when writing XML Date: 14 Sep 2009 Author: Tom Anderson Source: http://www.javakb.com/Uwe/Forum.aspx/java-programmer /48027/checking-DTD-when-writing-XML > Hi, is there any library out there which checks XML when writing it? > I've tried googling, but without any result. Nothing springs to mind. You could send your output to a validating document builder, and if it all goes in successfully, you know it's okay. The key code is in here: http://www.herongyang.com/XML /DTD-Validation-of-XML-with-DTD-Using-DOM.html However, this would involve building a DOM tree that you didn't need.
Table of Contents