RE: storing data from XML file into data structure

2004-08-17 Thread Jesse Pelton
store its value. > -Original Message- > From: Jones, Brian O. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 17, 2004 9:28 AM > To: [EMAIL PROTECTED] > Subject: RE: storing data from XML file into data structure > > What I do to write to a file is use a fout <<

RE: storing data from XML file into data structure

2004-08-17 Thread Jones, Brian O.
[EMAIL PROTECTED] Sent: Monday, August 16, 2004 10:20 AM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure You have the following comment (where the real code presumably actually writes to a file): //here I have the data that I want to store, //but I am

RE: storing data from XML file into data structure

2004-08-16 Thread Jesse Pelton
st 16, 2004 9:15 AM > To: [EMAIL PROTECTED] > Subject: RE: storing data from XML file into data structure > > Okay here is what I did...don't know if this is right or not. > > for(DOMNode * child = root->getFirstChild(); > child != 0; > child = child->getNe

RE: storing data from XML file into data structure

2004-08-16 Thread Jones, Brian O.
here } } } } } Hope this helps... -Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure I'd consider using SAX rather than DOM for this,

Re: storing data from XML file into data structure

2004-08-13 Thread Dan White
to see the solution??? -Original Message- From: Dan White [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:04 PM To: Jones, Brian O. Cc: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure Is there a reason you cannot populate your structure directly out of

RE: storing data from XML file into data structure

2004-08-13 Thread John Mostrom
sse Pelton [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure I'd consider using SAX rather than DOM for this, but it should be straightforward to accomplish what you want with either. I think you need

RE: storing data from XML file into data structure

2004-08-13 Thread Adam Heinz
ent: Friday, August 13, 2004 2:40 PM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure I use DOM, but what I was trying to do was eliminate writing the contents to a file first and then reading the file into m

RE: storing data from XML file into data structure

2004-08-13 Thread Jones, Brian O.
and I tried to read up on it, but seems like a lot of info for something not too difficult. -Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure I'

RE: storing data from XML file into data structure

2004-08-13 Thread Jones, Brian O.
??? -Original Message- From: Dan White [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:04 PM To: Jones, Brian O. Cc: [EMAIL PROTECTED] Subject: RE: storing data from XML file into data structure Is there a reason you cannot populate your structure directly out of the DOM tree ? I have

RE: storing data from XML file into data structure

2004-08-13 Thread Jesse Pelton
OTECTED] > Sent: Friday, August 13, 2004 2:44 PM > To: [EMAIL PROTECTED] > Subject: RE: storing data from XML file into data structure > > I used several for loops to traverse down to the values that > I want and I want to take the values and put them into my > structure, but

RE: storing data from XML file into data structure

2004-08-13 Thread Dan White
ing the contents to a file > first and then reading the file into my structure. > > -Original Message- > From: Dan White [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:38 PM > To: Jones, Brian O. > Cc: [EMAIL PROTECTED] > Subject: Re: storing data from X

RE: storing data from XML file into data structure

2004-08-13 Thread Jones, Brian O.
my xml file struct one duplicates several times and two does as well so I but I know the order of data won't change. -Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:29 PM To: [EMAIL PROTECTED] Subject: RE: storing data from XML file into

RE: storing data from XML file into data structure

2004-08-13 Thread Jones, Brian O.
: storing data from XML file into data structure Why not use DOM ? It parses the XML and then you have the document "tree" to work from. On Fri, 13 Aug 2004, Jones, Brian O. wrote: > Hi all, > > I am trying to store all the contents of my xml file in a structure when I par

Re: storing data from XML file into data structure

2004-08-13 Thread Dan White
Why not use DOM ? It parses the XML and then you have the document "tree" to work from. On Fri, 13 Aug 2004, Jones, Brian O. wrote: > 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 t

RE: storing data from XML file into data structure

2004-08-13 Thread Jesse Pelton
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 fi