XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Jeff SmithSubject: Multiple Sibling Matches
Author: Jeff Smith
Date: 29 Aug 2008 03:51 PM
SS,

First of all thanks for your help in advance...

This is what I need to be able to accomplish. I need the xpath statement to select the single "Premium" element when I have to match against multiple sibling Rate/Provision element values of "03" and "600". Is this even possible?

<?xml version="1.0"?>
<Rates>
<Insured type="EE">
<Rate>
<Provision>03</Provision>
<provision>500</Provision>
<Premium>13.75</Premium>
</Rate>

<Rate>
<Provision>03</Provision>
<provision>600</Provision>
<Premium>14.75</Premium> <!-- This is the one I need -->
</Rate>

<Rate>
<Provision>03</Provision>
<provision>700</Provision>
<Premium>15.75</Premium>
</Rate>
</Insured>
</Rates>

Posttop
Minollo I.Subject: Multiple Sibling Matches
Author: Minollo I.
Date: 29 Aug 2008 04:09 PM
//Premium[../Provision = "03" and ../Provision = "600"]

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.