Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| X-Received | by 10.66.146.193 with SMTP id te1mr22364141pab.17.1455642990977; Tue, 16 Feb 2016 09:16:30 -0800 (PST) |
|---|---|
| X-Received | by 10.50.137.8 with SMTP id qe8mr234011igb.4.1455642990947; Tue, 16 Feb 2016 09:16:30 -0800 (PST) |
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!ok5no2588136igc.0!news-out.google.com!l1ni15622igd.0!nntp.google.com!hb3no5692753igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.text.xml |
| Date | Tue, 16 Feb 2016 09:16:30 -0800 (PST) |
| In-Reply-To | <n9vib1$2anh$3@macpro.inf.ed.ac.uk> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=80.138.155.197; posting-account=BB9TTQoAAAAaG_6eepjAV1B5ADBJGjzu |
| NNTP-Posting-Host | 80.138.155.197 |
| References | <7e34c25e-3db7-4eaa-a4a1-94779ff87b2a@googlegroups.com> <n9vib1$2anh$3@macpro.inf.ed.ac.uk> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <54d935fd-e3d8-4efd-bd6b-c0e99212407d@googlegroups.com> (permalink) |
| Subject | Re: xpath deeper level but considering siblings |
| From | frank67x@gmail.com |
| Injection-Date | Tue, 16 Feb 2016 17:16:30 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Lines | 30 |
| X-Received-Bytes | 2110 |
| X-Received-Body-CRC | 2798868249 |
| Xref | csiph.com comp.text.xml:852 |
Show key headers only | View raw
Am Dienstag, 16. Februar 2016 17:25:04 UTC+1 schrieb Richard Tobin: > In article <7e34c25e-3db7-4eaa-a4a1-94779ff87b2a@googlegroups.com>, > <frank67x@gmail.com> wrote: > >What's the xpath to retrieve the value of > > /root/main/data/data1 > >of the 1st section, where sibling > > /root/main/info[@name='info1'] has value 'value_1a'? > > You want the data/data1 of the root/main whose info[@name="info_1"] > is equal to "value_1a": > > /root/main[info[@name="info_1"]="value_1a"]/data/data1 > > -- Richard - thanks a lot. Two next questions: 1) Is it really "info_1" to use? or does it have to be 'info_1'? (double quote or single quote) 2) Is it also supported to use a combination of criterions? Something like e.g.: /root/main[info[@name="info_1"]="value_1a"]&&[@name="info_2"]="value_2a"]/data/data1 Are logical operators supported? (&& above) regards, Frank
Back to comp.text.xml | Previous | Next — Previous in thread | Next in thread | Find similar
xpath deeper level but considering siblings frank67x@gmail.com - 2016-02-16 02:23 -0800
Re: xpath deeper level but considering siblings richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-02-16 16:21 +0000
Re: xpath deeper level but considering siblings frank67x@gmail.com - 2016-02-16 09:16 -0800
Re: xpath deeper level but considering siblings richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-02-17 01:01 +0000
Re: xpath deeper level but considering siblings frank67x@gmail.com - 2016-02-17 00:07 -0800
Re: xpath deeper level but considering siblings Peter Flynn <peter@silmaril.ie> - 2016-02-21 15:41 +0000
csiph-web