|
-
Mar 12th, 2005, 08:30 PM
#1
Fanatic Member
Re: Can't seem to open XML file
1. You realise that their is no such directory called C:\ on the device. This path only exists on PCs never on devices. Locations on devices are of the form \Programs Files\some folder or \My Documents\some folder
2. Since you are using it on the emulator you give it any of the locations available on the emulator. These folders NEED to exist before you can write to the so you need to use Directory class and the create/new method.
so example
system.io.directory.create("\My Documents\My New Folder\")
Dim xtrXSD As New XmlTextReader("\My Documents\My New Folder\states.xsd")
statesDS.ReadXmlSchema(xtrXSD)
xtrXSD.Close()
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|