I have a ListView bind to xmldatasource, but I cannot make it work as the online demo does, it keeps saying "
Here is my xmldatasource:
DataBinding: 'System.Web.UI.WebControls.XmlDataSourceNodeDescriptor' does not contain a property with the name 'Street'.
"..when I changed the syntax from <%#Eval("Street")%> to <%#XPath("Address/Street")%>, it kinda works but only pull out data under the first child node, the rest never got databinded. The xml file is like below:<
data
>
<
Address
>
<
Id
>1000</
Id
>
<
Street
>1234 S 1st St. </
Street
>
<
City
>LOS ANGELES</
City
>
.......
</
Address
>
<
Address
>
......
</
Address
>
</
data
>
<
asp:XmlDataSource
ID
=
"XmlDataSource1"
runat
=
"server"
DataFile
=
"~/sample1.xml"
XPath
=
"data"
></
asp:XmlDataSource
>
Any suggestions?
Thanks a lot!
Shan