Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2006, 10:20 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default Chapter 15--what is the difference-XPath?

What is the difference between putting an XPath of

/Bookstore/genre/book

&

/Boostore/genre/*

Can someone also explain how XPathSelect and the XPath @num & @name work with the DataSource from the first DataList? How is XPathSelect finding the original datasource--and what does the parameter serve (chapter).

Kind Regards,
Rob
 
Old October 19th, 2006, 06:13 AM
Authorized User
 
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not an expert in XPath. We included just enough in the book to give you some navigation adn seelectio nin XML files. If your data source is XML, it would be very bebficial to study a true XPat book.

Here is how I think of it:
/ is the child and * is the woldcard for all nodes in that child. so genre/book gies all books. But genre/* gies all books and also any other nodes, like CDs or DVDs.

The @ means teh next word is a named attribute, not a node name.

There is also a whole set of commands beginning with $ that can be used for logical tests, like greater then.






Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 15 - ciwluke BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 11th, 2008 03:33 PM
Chapter 15 rrlevron BOOK: Beginning ASP 3.0 0 November 17th, 2005 03:38 PM
chapter 15 manal_sag BOOK: Beginning ASP 3.0 0 April 22nd, 2005 02:23 PM
Chapter 15!! studentinpain BOOK: Beginning ASP 3.0 16 March 12th, 2004 10:26 AM
Chapter 15 help Lorenzo_G BOOK: Beginning ASP 3.0 1 November 27th, 2003 01:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.