J
jlp
Hey all, this may be a noob question but...
I am loading an xml file into a dataset but there is a piece of data in
it that I can not find in the dataset. In the xml there is an element
that looks somthing like this.
<somegroupofpeople>
<persontype>Male
<person>
<fname>John</fname>
<lname>Doe</lname>
</person>
<person>
<fname>Joe</fname>
<lname>Dirt</lname>
</person>
</persontype>
<persontype>Female
<person>
<fname>Jane</fname>
<lname>Doe</lname>
</person>
<person>
<fname>Joe</fname>
<lname>Dirt in drag</lname>
</person>
</persontype>
</somegroupofpeople>
<somegroupofpeople>...
This is just an example. The real data has elements that differ. What I
can't seem to find or navigate to is what would be values "Male" or
"Female" in persontype.
My first impression is that this kind of layout is kind of goofy in that
the sex should be an element or attribute of <person>. However I am no
xml guru and any tool that I run it through tells me that it is well
formed so what do I know.
If I needed to do something for persontype in each group of people
dependent on its value, how do I find this piece of the xml in a
dataset?
I hope this makes sense.
Thanks all.
I am loading an xml file into a dataset but there is a piece of data in
it that I can not find in the dataset. In the xml there is an element
that looks somthing like this.
<somegroupofpeople>
<persontype>Male
<person>
<fname>John</fname>
<lname>Doe</lname>
</person>
<person>
<fname>Joe</fname>
<lname>Dirt</lname>
</person>
</persontype>
<persontype>Female
<person>
<fname>Jane</fname>
<lname>Doe</lname>
</person>
<person>
<fname>Joe</fname>
<lname>Dirt in drag</lname>
</person>
</persontype>
</somegroupofpeople>
<somegroupofpeople>...
This is just an example. The real data has elements that differ. What I
can't seem to find or navigate to is what would be values "Male" or
"Female" in persontype.
My first impression is that this kind of layout is kind of goofy in that
the sex should be an element or attribute of <person>. However I am no
xml guru and any tool that I run it through tells me that it is well
formed so what do I know.
If I needed to do something for persontype in each group of people
dependent on its value, how do I find this piece of the xml in a
dataset?
I hope this makes sense.
Thanks all.