From: Devin K. <de...@SD...> - 2002-08-14 21:57:07
|
First a minor bug report. when flexml generates the header file from a DTD it doesn't put a full #ifndef gard in the header. So you get: #ifndef _FLEXML_blah_H ... stuff ... #endif where as it needs a #define right after the #ifndef. I'd submit a patch but it's probably easier to just do by hand. Are the mailing lists still active? Also I've had some problems with the parser that flexml generates, all of which I managed to fix by tweaking the skel file and a sed run over the generated lex file. Basically the problem is that the XML that I want to parse is being read off a network connection and doesn't contain the <!DOCTYPE ...> header. The fix I came up with was to not use the ROOT_<tag> states and just match the begining of the tags in the PROLOG state instead. Is this reasonable? Would this a feature worth putting into FleXML? I would be willing to do the coding if I can find the time. The final question is on user defined skeleton files. From my perspective it would be very nice if I could specify a skeleton file *in additon to* the default one. Basically insert it between %{ and %} in the lex file. Also wrap some of the macros like FAIL in #ifndef's so that the user can override them. Any interest/thoughts? thanks, -- Devin Kowatch de...@sd... |