pocket PC 2003 XML
Hello guys开发者_StackOverflow社区 Im new in creating mobile applications in .NET. And I have a problem with these codes:
DataSet ds = new DataSet(); ds.ReadXml(_xmlDataFile); -> here is the error
could somebody please tell me what are the possible reason why an error always occur. Im really wondering because this is the exact code that my professor used and he doesnt encounter any error on this part. Thanks in advance!
The problem is that you are passing in a string to ReadXml()
which is not XML (it is a file name), you need to open a FileStream
on the name first then pass that into ReadXML()
.
精彩评论