Below is an xml example. I need to be able to get a list of ObjectNames
for a particular MethodName. So, if my MethodName is george, I should
have a list of Object1 and Object2 because george is a methodname for
each object. I'm having difficulty constructing xpath. Any help would
be appreciated.
<Root>
<Objects>
<Object>
<ObjectName>Object1</ObjectName>
<Methods>
<MethodName>jim</MethodName>
<MethodName>tony</MethodName>
<MethodName>fred</MethodName>
<MethodName>george</MethodName>
<MethodName>jorge</MethodName>
</Methods>
</Object>
<Object>
<ObjectName>Object2</ObjectName>
<Methods>
<MethodName>pete</MethodName>
<MethodName>craig</MethodName>
<MethodName>simon</MethodName>
<MethodName>george</MethodName>
<MethodName>jorge</MethodName>
</Methods>
</Object>
<Objects>
</Root>
Thanks -
Tom Schreck
817-252-4900
[EMAIL PROTECTED]
I have not failed. I've found 10,000 ways that won't work.
- Thomas Edison
-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm