General information
Title:
XML data source question
I'm trying to read a simple XML file and bind it to a grid on a windows form. This is for display only. However, I keep getting an error and can't figure out where I'm going wrong.
The XML data has no schema.
Example: (tags markers have been removed for posting here)
?xml version = "1.0" encoding="Windows-1252" standalone="yes"?
VFPData
a_arcusp custno="BUNIND" item="RP-123K" price="8.83000" percent="0" effective="2003-05-22"/
a_arcusp custno="BUNDAL" item="BR-736" price="10.50000" percent="0" effective="2003-05-22"/
/VFPData
the c# code is as follows:
string fileName = "d:\\development\\pda\\dotnet\\arcusp.xml";
DataSet newDS = new DataSet();
newDS.ReadXml(fileName, XmlReadMode.IgnoreSchema);
grdIntoStock.SetDataBinding(newDS,"arcusp");
I keep getting the following error
"Cannot create a child list for field arcusp".
Obviously I'm doing something wrong, any suggestions folks?
Thanks
Alan Wyne
IS Manager
Rollpak Corp
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only