I'm having trouble loading some xml data into a dataset via the ReadXML
call. I'm loading into the dataset an xml schema prior to the ReadXML call.
I see that there IS in fact, 3 records that should be created in the dataset
with the provided xml. However, after the ReadXML statement there are no
rows in the DataSet.Tables[0] ? IS there something I'm missing? I can
assure you that the schema is correct, since it was originally created with
the data using the DataSet.WriteXMLSchema method.
here is the example code I'm using:
// call the web service and get the returned xml
xmlOutput = webService.TodaysEvents( "", ipAddress, "", "", "", "", "", "",
"", "", "", "" );
// read in the xml
xmlStringReader = new System.IO.StringReader( xmlOutput );
// create the dataset
data = new DataSet();
// set the schema to check against
data.ReadXmlSchema( Server.MapPath(
"outputSchemas/OLITSBroadcastTodaysEvents.xsd" ) );
// convert the data into a dataset
data.ReadXml( xmlStringReader );
Thanks,