[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQuery question about accessing ancestor/parent nodes of return values

Torsten Grust grust at in.tum.de
Sat May 10 00:28:38 PDT 2008


  XQuery question about accessing ancestor/parent
	nodes of return values
Hi Steve,

a simple XPath expression appears to be sufficient in this case:

	//Company/Person[Address/Zipcode = "12345"]

Cheers,
    --Torsten

On May 9, 2008, at 22:36, Steve Taylor wrote:
> The problem with the results above is that I need to return the  
> entire <Person> (including all sub-nodes) with the matching  
> <Zipcode> string, not just the person’s <Address> node since the  
> <Address> node alone does not tell me who is the matching person.  
> With the results I got back from the XQuery above I only get the  
> <Address> node, and I can’t seem to figure out how to return the  
> entire <Person> node. Here is the expected results I was hoping to  
> receive for this example: [...]

-- 
   | Prof. Dr. Torsten Grust                         http://x-query.com/mailman/listinfo/talk |
   |                                 http://www-db.in.tum.de/~grust/ |
   |     Database Systems - Technische Universität München (Germany) |






Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.