Re: [GD-General] Text file parsing
Brought to you by:
vexxed72
From: Noel L. <ll...@co...> - 2002-12-11 11:38:44
|
On Wed, 11 Dec 2002 12:16:35 +0100 Javier Arevalo <ja...@py...> wrote: > If you're starting fresh, I would recommend using XML for structured text > files. You can use TinyXML to read them (use google to locate it). Yes, I was going to suggest XML as well. It's simple enough to replace ini-like files, and complex enough that you can easily represent hierarchical structures (very important for hierarchy/geometry information). I'm about to start looking into it more seriously for our next project, so I don' t have any specific recommendations now. I did use TinyXML for The Bidding Imp (http://www.convexhull.com/bidimp) and it worked just fine. It has no data validation though (through DTD) and that's something I think I would like to have, at least in the tool side. Ideally, I'd like a parser that does both, and I can choose whether to enable it or not. Still, it was certainly small enough (about 100KB) and it worked perfectly well just for saving/reading data. --Noel ll...@co... |