[Expat-discuss] Using Expat to rewrite an XML file, can it be done?

Jean-Claude Gervais jc.gervais@videotron.ca
Thu, 19 Sep 2002 11:35:18 -0400


Hi,

	I'd like to write a front-end that would use Expat to read an XML file and
present certain strings contained in the XML to the user for editing.

	The problem I'm having is that I must then rewrite the XML back out to a
file.

	In order to do that, what would be a good usage of Expat?

	I think I might need to "see" all the XML being parsed, so that whatever
came before the string a user edited could be rewritten to the output.

	That would mean "seeing" every tag, symbol and value in the XML file,
wouldn't it?

Can Expat be used to do this, or would I need to develop my own parser?

Thanks in advance.