[GCC-XML]converting gccxml output into internal database for better access

Dupont, Michael michael.dupont at mciworldcom.de
Mon May 6 07:56:12 EDT 2002


Valery,
 
>>I will need to reparse the file many times to have entire data structure.
That is a bad design. You only need to pass over the file once.
 
If you use a SAX XML parser you should create an object in memory for each
node in your programming language.
Copy all the attributes into some object, an hash table, and yes, build a
hash tables of ids.
 
Afterwards you can contruct your objects as needed.
I dont remember if the GCCXML is using the "ID"  attribute. If so, any good
DOM XML parser will do this all for you.
 
What programming language are you using?,
I have some examples in perl.
 
mike
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20020506/3c4c8dc7/attachment.html>


More information about the gccxml mailing list