You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jones, Brian O." <bo...@ngc.com> on 2004/08/13 20:05:21 UTC

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) bo.jones@ngc.com
Phone (410) 993-2072
Fax (410) 981-8381




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: storing data from XML file into data structure

Posted by Dan White <yg...@comcast.net>.
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 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) bo.jones@ngc.com
> Phone (410) 993-2072
> Fax (410) 981-8381
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org