R
Ramon F Herrera
A few years back, after having developed my very own implementation of
an XML retrieval function, I discovered that I had just reinvented the
wheel: it is known as XPath. My wheel only handled the simplest
format, though.
I have grown comfortable with several XPath implementations, until
now, that is.
Now I am stuck with many tables which are very similar, and I get too
many hits. The items that I need are easily retrieved by these paths:
/root/table[9]/intermediate_joints/joint_label
/root/table[10]/intermediate_joints/joint_label
Since those numbers (9 and 10) only work for one XML file, how do I
determine them in a general way?
The following xpath hits those tables, but I need to retrieve the
values 9 and 10.
/root/table[@tagname='intermediate_joints']
Is this what XQuery is for? (I am not familiar with it)???
TIA,
-Ramon
an XML retrieval function, I discovered that I had just reinvented the
wheel: it is known as XPath. My wheel only handled the simplest
format, though.
I have grown comfortable with several XPath implementations, until
now, that is.
Now I am stuck with many tables which are very similar, and I get too
many hits. The items that I need are easily retrieved by these paths:
/root/table[9]/intermediate_joints/joint_label
/root/table[10]/intermediate_joints/joint_label
Since those numbers (9 and 10) only work for one XML file, how do I
determine them in a general way?
The following xpath hits those tables, but I need to retrieve the
values 9 and 10.
/root/table[@tagname='intermediate_joints']
Is this what XQuery is for? (I am not familiar with it)???
TIA,
-Ramon