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.