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

Fred L. Drake, Jr. fdrake@acm.org
Sat, 28 Apr 2001 21:45:20 -0400 (EDT)


Rich Salz writes:
 > interesting question:  can you invoke DOM methods such that the
 > resultant structure is invalid?  Off the top of my head, I don't know.

  Absolutely!  Whether or not any given change will do so depends on
the change and the schema.
  Now, if we're talking about well-formedness, I think that's
guaranteed to hold if the DOM implementation isn't seriously buggy.
But a non-well-formed DOM tree just doesn't make conceptual sense --
that the document is a tree is just about all well-formedness
requires!


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations