Hey guys,I'm new to the forums and Have a little bit of coding experience .
But I have encounted a problem ,which I was wondering if you guys could help me out with.
I'm creating a program in which I need to extract the element field names and list them in a listbox
Heres a example of what I'm talking about
So I want to select All Children of the Root element nothing else .
So my items in the Listbox should be the following
Note:that this is a example I have about 30 fields I want to add.
What properties should I use and what Xpath code should I use .
Please post code
Cheers
But I have encounted a problem ,which I was wondering if you guys could help me out with.
I'm creating a program in which I need to extract the element field names and list them in a listbox
Heres a example of what I'm talking about
HTML:
<Root>
<PersonBob>
<Name>Bob</Name>
<Age>28</Age>
<Weight>180</Weight>
</PersonBob>
<PersonJulie>
<Name>Julie</Name>
<Age>34</Age>
<Weight>125</Weight>
</PersonJulie>
<PersonJack>
<Name>Jack</Name>
<Age>34</Age>
<Weight>125</Weight>
</PersonJack>
<PersonBen>
<Name>Ben</Name>
<Age>21</Age>
<Weight>121</Weight>
</PersonBen>
</Root>
So my items in the Listbox should be the following
- PersonBob
- PersonJulie
- PersonJack
- PersonBen
Note:that this is a example I have about 30 fields I want to add.
What properties should I use and what Xpath code should I use .
Please post code
Cheers
Last edited by a moderator: