 |
 |
 |
Thanks you so much, It works!!! Super Great! Thank you all for you
time...
supergreat wrote:
> *Could someone help me with the XPath to select LastName from th
> below xml without duplicating the name.
> Note: There are two cities in the above tree that have the sam
> information, I just want to pick one, not the two,
> and I want my select to check the two cities and just pick one..
> Here is the one I wrote, It pick up two, I just
> want one
>
> /Residence/*/City[@id='16']/LastName
> 'Brown'
> 'Brown'
>
>
> <Residence>
> <California>
> <City active="true" id="16">
> <FirstName>James</FirstName>
> <LastName>Brown</LastName>
> <Phone>(800) 445-4545</Phone>
> <Fax>(800) 445-4500</Fax>
> </City>
> <City active="true" id="17">
> <FirstName>James</FirstName>
> <LastName>Brown</LastName>
> <Phone>(800) 445-4545</Phone>
> <Fax>(800) 445-4500</Fax>
> </City>
> </California>
> <Colorado>
> <City active="true" id="16">
> <FirstName>James</FirstName>
> <LastName>Brown</LastName>
> <Phone>(800) 445-4545</Phone>
> <Fax>(800) 445-4500</Fax>
> </City>
> <City active="true" id="17">
> <FirstName>Mary</FirstName>
> <LastName>Bob</LastName>
> <Phone>(800) 445-2245</Phone>
> <Fax>(800) 445-2200</Fax>
> </City>
> </Colorado>
> </Residence>
-
supergrea
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message113822.htm
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |