The XML is very simple, here's what it looks like with one record:
<?xml version="1.0" encoding="utf-8" ?>
<Pain_Medications>
<Medications>
<Drug>Codeine</Drug>
<Parenteral>130.00</Parenteral>
<Oral>200.00</Oral>
<Comment>Codeine is usually combined with Tylenol or aspirin, and that is
the limiting factor in the dosage of this drug.
</Medications>
</Pain_Medications>
What I need are the Drug, Parenteral, and Oral fields read into the array
and in that order. Like I mentioned, I have about 12 records, not that that
matters.
"Alex Yakhnin [MVP]" <(E-Mail Removed)> wrote in message
news:9539C640-D97A-47BA-ADC5-(E-Mail Removed)...
> In most cases XML parsing is not a generic process, so if you want
somebody
> to help you with that you could post at least your XML. Otherwise, take a
> look at XmlTextReader in the docs and web for samples.
>
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com
> www.opennetcf.org
>
> "Aaron" wrote:
>
> > Can anyone point me in the right direction here. I don't need anything
> > complicated, all I want is to populate an array with fields from an XML
> > file. I have a small XML file with about 12 records and each record has
4
> > fields. I need to create an array which holds only three of those
fields
> > from each record, so a 1 x 3 array I'm assuming. Is there a simple way
to
> > set this up, or does someone have an example of this that I could use?
> >
> > Thanks
> >
> >
> >