[XML-SIG] Validating a DOM w/xmlproc?

Lars Marius Garshol larsga@garshol.priv.no
29 Apr 2001 12:47:51 +0200


* Dom Linu
| 
| Quick question: I have been using xmlproc for validation with its
| XMLValidator parse_resource method and a filename to validate XML.
| Now I find myself holding a DOM, and need to validate a DOM I have
| in memory (as opposed to a file).  What is the easiest way to have
| the DOM validated?

I've been wanting to modify xmlproc so that the validator can operate
without the XML parser itself. They are already separated to some
extent, but the validator is not yet up to only validating an event
stream. 

Once that is done I would like to make a validating SAX filter. What
you could then do would be to use a DOM2SAX event generator and pipe
the events through the validator.

This is not yet done, but it's something I hope that either I or
someone else can do in the not too distant future.

--Lars M.