Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: xpath multiple attributes [Thread Next] Re: xpath multiple attributesTo: NULL Date: 12/3/2006 12:54:00 AM Anthony Jones wrote: > "kristian" <kristian@h...> wrote in message > news:1164888085.059582.227330@h...... > > > > Anthony Jones wrote: > > > "kristian" <kristian@h...> wrote in message > > > news:1164871078.595020.107890@l...... > > > > I have a xml file structure that looks like this: > > > > <?xml version="1.0" encoding="iso-8859-1"?> > > > > <list> > > > > <item> > > > > <name>page 1 name</name> > > > > <body>page 1 body</body> > > > > <item> > > > > <name>page 1.1 name</name> > > > > <body>page 1.1 body</body> > > > > </item> > > > > </item> > > > > <item> > > > > <name>page 2 name</name> > > > > <body>page 2 name body</body> > > > > <item> > > > > <name>page 2.1</name> > > > > <body>page 2.1 body</body> > > > > <item> > > > > <name>page 2.1.1</name> > > > > <body>page 2.1.1 body</body> > > > > </item> > > > > </item> > > > > </item> > > > > </list> > > > > > > > > how do I get a hold of the item which name is "page 2 name"? > > > > > > > > > > /list/item[2]/name > > > > is there any way that I can find it using the names like > > "/list/item[page 1 name]/item[page 2 name] > > > > /list/item[name="page 1 name"]/item[name="page 2 name"] > > You should take the time out to run through this tutorial:- > > http://www.w3schools.com/xpath/default.asp Thanks for the reply | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
