What are available open source XML parsers that can validate against a DTS
or a schema?
For the application we have in mind, we want to run something behind a web
form, and so we want things that will run either at as Unix shell commands
or from C, perl or Java programs. GUI programs aren't useful in this
context, though they may be interesting for other reasons.
We want to assemble a larger document out of XHTML fragments, and so we
want to make a schema or DTD to validate those those fragments, with a
limited set of tags and attributes appropriate to the context. I'd thought
of starting with some modules from the modularized XHTML to cook up a DTD
and wrapping each fragment in an artificial top-level element.
It also occured to me that one might run an XML document thru a SAX parser
and just check for well-formedness, and the presence of only a restricted
set of elements and attributes. This would be less strict, and allow a sort
of XHTML "tag soup", but it would at least detect such things as unbalanced
<table> tags, which are the bane of composite HTML documents.
Albert Lunde [log in to unmask] (new address)
[log in to unmask] (old address)