Re: Lack of symmetry: How to create XML
Karl Waclawek <[email protected]> Tue, 06 Jul 2010 14:25:55 -0400
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
On 06/07/2010 12:00 PM, Fred Drake wrote: > I concur that something better than fprintf would be a win for dealing > with generation. I'm also happy to defer to others for what a good C > API for that would look like, since I don't use eXpat from C for > applications. > > I will note two things, which you've probably already thought about: > > - many applications consume XML without ever generating it, and > > - one of eXpat's goals is to be gentle on the memory footprint. > > Given this, I'd rather see someone come up a *separate* library for > XML generation; there are also applications out there than want to > generate XML without consuming it, and they could similarly benefit > from a decent library for the purpose. > > I think Tim Bray wrote such an app: http://www.tbray.org/ongoing/genx/docs/Guide.html From the requirements you will see that it is not such a simple undertaking. (I once wrote one myself in Delphi). Karl