RE: Advice on XML editor development

Tim Bray (tbray@textuality.com)
Mon, 27 Apr 1998 09:09:28 -0700


At 10:11 AM 4/27/98 -0400, Bill la Forge wrote:
>I'm looking for a parser I can adopt to my needs or code I can crib. Specifically, a non-validating Java parser. (Speed is primary here, and
>validation is done by the generated marshalling code anyway.) But a real
>complicating factor is that I need to be able to parse the XML, modify the
>parse tree, and then recreate XML for output. To date I've ignored entities,
>as they could really complicate this process.

Several of the Java parsers either build a tree directly or make it
easy to do so. Given a tree, the amount of code necessary to
construct an XML output instance is like 25 lines, on a bad day.
-T.