Victor Charles
asked on
Help with reordering ID data element using VB.NET
Hi,
How do you reorder the ID data element using VB.NET? For example if my xml file contains
<Root>
<Table>
<ID>4<ID>
<Item></Item>
</Table>
<Table>
<ID>2<ID>
<Item></Item>
</Table>
<Table>
<ID>1<ID>
<Item></Item>
</Table>
<Table>
<ID>3<ID>
<Item></Item>
</Table>
</Root>
How do I obtain the following xml file?
<Root>
<Table>
<ID>1<ID>
<Item></Item>
</Table>
<Table>
<ID>2<ID>
<Item></Item>
</Table>
<Table>
<ID>3<ID>
<Item></Item>
</Table>
<Table>
<ID>4<ID>
<Item></Item>
</Table>
</Root>
Thanks,
Victor
How do you reorder the ID data element using VB.NET? For example if my xml file contains
<Root>
<Table>
<ID>4<ID>
<Item></Item>
</Table>
<Table>
<ID>2<ID>
<Item></Item>
</Table>
<Table>
<ID>1<ID>
<Item></Item>
</Table>
<Table>
<ID>3<ID>
<Item></Item>
</Table>
</Root>
How do I obtain the following xml file?
<Root>
<Table>
<ID>1<ID>
<Item></Item>
</Table>
<Table>
<ID>2<ID>
<Item></Item>
</Table>
<Table>
<ID>3<ID>
<Item></Item>
</Table>
<Table>
<ID>4<ID>
<Item></Item>
</Table>
</Root>
Thanks,
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Victor, how are you doing with this question?
ASKER
Thank You.
Not a problem Victor, glad to help.
ASKER
Hi Fernando,
How do I modify the code to enter numeric values in a data element (i.e ID) that is empty in squential order?
Thanks,
Victor
How do I modify the code to enter numeric values in a data element (i.e ID) that is empty in squential order?
Thanks,
Victor
Hi Victor;
Well you will need to determine what values, number's, will replace the empty nodes values for, <ID>, then sort then. The difficult part is to figure out what ID's to give these nodes.
Well you will need to determine what values, number's, will replace the empty nodes values for, <ID>, then sort then. The difficult part is to figure out what ID's to give these nodes.
ASKER
Hi Fernando,
I would like to add numbers sequentially starting with 0 in the first record.
Victor
I would like to add numbers sequentially starting with 0 in the first record.
Victor
ASKER