B
Billy
I wish to select a node using the value of one of its attributes, i.e.
xml:
....
<tablelist>
<table name="table1">
...
</table>
<table name="table2">
...
</table>
...
</tablelist>
....
Method Call: element = xmlDoc.GetElementById("table1")
But from what I have been reading and tested this only works if I am
using DTD and the attribute is of type ID. I don't want to use a DTD
(already using XSD) so how can I either use this method or is there an
alternative that doesn't tie me to using DTD's?
Note, I know I can select all of the nodes in the <tablelist> node and
then loop but I would rather not as this list could be huge.
Thanks
Billy
xml:
....
<tablelist>
<table name="table1">
...
</table>
<table name="table2">
...
</table>
...
</tablelist>
....
Method Call: element = xmlDoc.GetElementById("table1")
But from what I have been reading and tested this only works if I am
using DTD and the attribute is of type ID. I don't want to use a DTD
(already using XSD) so how can I either use this method or is there an
alternative that doesn't tie me to using DTD's?
Note, I know I can select all of the nodes in the <tablelist> node and
then loop but I would rather not as this list could be huge.
Thanks
Billy