ASP. NET 2.0 Learning (1) -- questions about XPath attributes in the xmldatasource Control

Source: Internet
Author: User
ASP. NET 2.0 contains an important data source control that can access hierarchical data xmldatasource. This control has an XPATH attribute, which is an important tool for querying XML data. You can use this attribute to quickly locate and query nodes. It brings us convenience. However, there are some questions during use.

Is the XPath attribute value in the xmldatasource control different from the XPath query syntax in XML theory? My initial idea is that there is no difference. However, after reading some examples, it is always confusing because the example is too simple. I am always telling you how to use datafile and how to set the XPath attribute. Therefore, there is no clear conclusion. In fact, the answer is just one sentence, which is very clear to all readers. However, in msdn, The XPath query syntax of xmldatasource is the same as that in XML theory. Alas, if we can see the basic implementation of the xmldatasource ControlCodeYou can also read the information about the internal mechanism. You may be able to understand some internal problems. Currently, I am using some typical XPath Query expressions (using XPath in XML theory) to test in the xmldatasource control. However, this is not a solution.

I do not know your opinions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.