Miro wrote:
Now try and bind to the second xml file ( that was actually created
through vb ) by writing an xml with the same step2.
Dont forget to pick a different Xpath. I cannot tell you what it is
cause I cannot get this part working.
The XmlDataSource exposes XML attributes of XML elements as properties you
can bind to. So you either need to ensure that your data table columns are
output as attributes or you need to apply an XSLT stylesheet to transform
elements you want to bind to to attributes.
If you want to ensure that columns are output as attributes then set e.g.
foreach (DataColumn col in yourDataTable.Columns)
{
col.ColumnMapping = MappingType.Attribute;
}
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/