[XML-SIG] Validating a DOM w/xmlproc?
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri, 27 Apr 2001 23:33:16 +0200
> 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 guess the easiest way is to linearise it, then parse it again. If it
is 4DOM, you can use xml.dom.ext.Printer for the linearisation.
Regards,
Martin