|
[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 valuesTorsten Grust grust at in.tum.deSat May 10 00:28:38 PDT 2008
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






