[ Jason E. Stewart ]
> > How do I parse a DOM Document? The document is read from file and
> > then alterd interactivly by the user. Before I write it to file I'd
> > like to verify that it's valid according to the dtd.
>
> I would suggest only making valid changes to the file, and then you
> don't have to validate it ;-)
>
> Otherwise, you'll have to write it out as a file, and re-parse it.
Hrrrmmmm. The users are going to alter some attributes of
DOM-elements. I don't want to check every attribute myself. That's why
I use a XML parser... Writing the DOM tree to file and then read it is
going to be a nasty hack since I cannot write the XML file (to it's
final destination) unless it's valid. (I'm writing a script that
generates a configuration file and it's critical that the
configuration file valid at all times.)
--
Lars Preben S. Arnesen
USIT, University of Oslo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]