Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Implementing a DTD-based XML validator

From: Stanimir Stamenkov <s7an10@--------.--->
To: NULL
Date: 6/4/2009 12:55:00 AM
Fri, 29 May 2009 13:38:08 +0100, /Tom Anderson/:

> Call me mad, but i'm interested in writing an XML validator. Not as part 
> of a parser, but operating on DOM-like objects in a program.

JAXP 1.3 provides validation API which is implemented [1] by Xerces2 
and which could operate on already parsed and built DOM.

> Can anyone direct me 
> to anything i can read online where i can learn about this? That could 
> be in English or source code - presumably, there are numerous 
> open-source projects which have implemented XML validators, right?

You could read the Xerces2 Implementation API documentation [2] - 
packages like org.apache.xerces.impl.dtd.models and 
org.apache.xerces.impl.xs.models.  You could browse the sources [3] 
as well.

[1] 
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/package-summary.html
[2] http://xerces.apache.org/xerces2-j/javadocs/xerces2/index.html
[3] http://xerces.apache.org/xerces2-j/source-repository.html

-- 
Stanimir


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent