I want to validate an XML file using a pre-made DTD. I am aware that you can do this with either an internal DTD or a DTD linked to from the file, but I would like to use a DTD that isn't either. I know the location of both the XML File and the DTD. Is there a way to do this, whe the two aren't linked? Or is there another way to validate the XML file? thanks in advance - and sorry if it is hard to understand
Alex Grose
Posts
-
XML DTD Vaildation -
ListBox ColoursStill not quite. Perhaps I havn't explained properly. I am basically creating an RSS reader. If the post (stored in a static Global list) hasn't been read before, it has a value called 'isNew' set to true - this should mean it will have a background colour other than white. When the user clicks this item, this value will change to false and I want the backing colour (marking it as unread) to change back to white. Basically, I want to change the colour at various points during the code (not just at initial Draw time). Thanks.
-
ListBox ColoursThis is sort of what I want, but to be able to change the colour dynamically within the script (but not fixed at start)
-
ListBox ColoursIs there any way to change the background colour of individual items in a listBox through code? I know you can do it with the listView control, but I have already built most of the functionality for the listBox, and don't really want to have to redo it.
-
HTML code to stringThanks for that!
-
HTML code to stringIs there a simple function which will convert a HTML string (including parts such as metachachters into a plain string. Basically stripping tags and replacing metacharachters with their true visual value? Does this exist in the .Net Framework, or will I hav to build it myself? Thanks in advance.
-
Database-style replacementThanks, Tried it before & didn't work but since discovered how to add the library. So I will try it again. :-D
-
Database-style replacementTried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)
-
Database-style replacementHello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
-
Connecting to a c# Local DatabaseOk, Thanks. I will investigate using SQLite as I have haerd that that can be used without a server (I.E Integrated) Thanks anyway.
-
Connecting to a c# Local DatabaseNo, I don't think that I have explained myself correctly. I want to be able to access the database file as if it were a database, but without running SQL server. I plan to move the program to another machine that is not running SQL server.
-
Connecting to a c# Local DatabaseTALHAKOSEN wrote:
did you take an error like below TITLE: Connect to Server ------------------------------ Cannot connect to C:\DEV\SyncServices\learning\ConsoleSync1\ConsoleSync1\bin\Debug\awclientdb.sdf. ------------------------------ ADDITIONAL INFORMATION: You are trying to access an older version of a SQL Server Compact Edition database. If this is a SQL Server CE 1.0 or 2.0 database, run upgrade.exe. If this is a SQL Server Compact Edition 3.0 or later database, run Compact / Repair. [ Db version = 3505053,Requested version = 3004180,File name = C:\DEV\SyncServices\learning\ConsoleSync1\ConsoleSync1\bin\Debug\awclientdb.sdf ] (SQL Server Compact Edition ADO.NET Data Provider) ------------------------------ BUTTONS: OK
No, the function just failed in the try block and then returned false in the catch block
-
Connecting to a c# Local DatabaseSorry, I have tried to connect using this method, the file is called Register.sdf and is in the same directory as the project content. This code fails to load the database effectively. This is the code I am trying to use (The 'Global' Class is a static class containing the RegDB Variable)
private bool loadDatabase() {
Global.RegDB = new SqlConnection();
Global.RegDB.ConnectionString = "Integrated Security = True; Initial Catalog =dbName; Data Source=localhost;";
try {
Global.RegDB.Open();
return true;
}
catch {
return false;
}
} -
Connecting to a c# Local DatabaseI would like to be able to connect to and read/modify a local database file from the coding side of c#. I am using Visual C# 2008 Express Edition but don't want to use the 'Data Sources' wizard, but rather the 'SqlConnection' Coding commands. I am using Microsoft SQL server 3.5 Database files. Thanks in advance. :-D