Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XPATH Syntax to query? >Thread Next - Re: XPATH Syntax to query? Re: XPATH Syntax to query?To: NULL Date: 12/5/2006 4:21:00 PM "Joseph Kesselman =D0=B4=B5=C0=A3=BA " > The XPath to "all hostname elements, at any dept" is simply //hostname, > which you seem to be aware of... so I presume your question is about how > to request that the XPath be executed, and that depends on what > environment you're working in (which you didn't tell us). Thanks Richard and Joseph, //hostname | //instance kind of works, but it will give like all the hostname, and then all the instance <hostname> <hostname> <hostname> <instance> <instance> <instance> but i need to have them in order, like <hostname> <instance> <instance> <hostname> << if there is no instance then just return nothing <hostname> <instance> Sorry I should have mentioned, I am Java and the JDOM API Any more advice please Thanks!! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
