开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜