If you can perform those two transformations (XML -> temp file and temp
file -> structure), what prevents you from performing a single
transformation (XML -> structure)?  Presumably you've solved the problem
of avoiding overwrites in the course of implementing serialization to
and from your temp file.  The same solution should apply if you omit the
serialization and populate your structure as you parse.

> -----Original Message-----
> From: Jones, Brian O. [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 13, 2004 2:05 PM
> To: [EMAIL PROTECTED]
> Subject: storing data from XML file into data structure
> 
> Hi all,
> 
> I am trying to store all the contents of my xml file in a 
> structure when I parse the file, but each section of my file 
> is repeat and I don't want to overwrite what I already have. 
> 
> So my current solution is to parse the file and store the 
> information in a temp file and read the temp file and store 
> the information in my data structure.
> 
> I just want to know if there is a better solution than the 
> one I've tried.
> 
> Brian Jones
> Senior Software Engineer
> (Email) [EMAIL PROTECTED]
> Phone (410) 993-2072
> Fax (410) 981-8381

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to