Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
QuestionThreading Pin
Stephen McAllister15-Dec-05 20:08
Stephen McAllister15-Dec-05 20:08 
AnswerRe: Threading Pin
S. Senthil Kumar15-Dec-05 20:37
S. Senthil Kumar15-Dec-05 20:37 
GeneralRe: Threading Pin
Stephen McAllister15-Dec-05 22:24
Stephen McAllister15-Dec-05 22:24 
QuestionInteracting with Dallas IButton form C# Pin
Krrish15-Dec-05 19:49
Krrish15-Dec-05 19:49 
AnswerRe: Interacting with Dallas IButton form C# Pin
Heath Stewart15-Dec-05 21:21
protectorHeath Stewart15-Dec-05 21:21 
Questionwhy doesnt this xml load into an xmldoc ? Pin
g00fyman15-Dec-05 19:36
g00fyman15-Dec-05 19:36 
AnswerRe: why doesnt this xml load into an xmldoc ? Pin
S. Senthil Kumar15-Dec-05 20:41
S. Senthil Kumar15-Dec-05 20:41 
GeneralRe: why doesnt this xml load into an xmldoc ? Pin
g00fyman16-Dec-05 15:20
g00fyman16-Dec-05 15:20 
of course,

stupid mistake on my part, thank you for being so kind to my Smile | :) .

obviously it must still connect to the internet to verify the DTD as well unless i copy that local, but for this application, it is not imperative that the html be validated strict.

kind regards,

g00fy


my final solution is as follows for anyone elses reference.

private XmlDocument LoadStrictXhtmlTemplate()
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("<?xml version='1.0' ?>");
// next line commented out as it takes about 10 seconds to throw the WebException
//sb.AppendLine("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
// Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
sb.AppendLine("<!-- " + this.m_CreatedComment + " -->");
sb.AppendLine("<html>"); // xmlns=\"http://www.w3.org/1999/xhtml\">");
sb.AppendLine("<head>");
sb.AppendLine("<title>" + this.m_Title + "</title>");
sb.AppendLine("</head>");
sb.AppendLine("<body id=\"start\">");
sb.AppendLine("</body>");
sb.AppendLine("</html>");

XmlDocument doc = new XmlDocument();
doc.LoadXml(sb.ToString());
return doc;
}

Questionnewbie in c# Pin
yaminilathatv15-Dec-05 19:36
yaminilathatv15-Dec-05 19:36 
AnswerRe: newbie in c# Pin
Vikram A Punathambekar15-Dec-05 21:49
Vikram A Punathambekar15-Dec-05 21:49 
GeneralRe: newbie in c# Pin
yaminilathatv15-Dec-05 22:23
yaminilathatv15-Dec-05 22:23 
AnswerRe: newbie in c# Pin
J4amieC15-Dec-05 21:49
J4amieC15-Dec-05 21:49 
GeneralRe: newbie in c# Pin
J4amieC15-Dec-05 21:51
J4amieC15-Dec-05 21:51 
GeneralRe: newbie in c# Pin
yaminilathatv15-Dec-05 22:27
yaminilathatv15-Dec-05 22:27 
GeneralRe: newbie in c# Pin
J4amieC16-Dec-05 0:25
J4amieC16-Dec-05 0:25 
GeneralRe: newbie in c# Pin
yaminilathatv16-Dec-05 21:55
yaminilathatv16-Dec-05 21:55 
QuestionSchema Pin
Mahi.Ragava15-Dec-05 18:00
Mahi.Ragava15-Dec-05 18:00 
QuestionCheckbox Arrays... Pin
flicktom15-Dec-05 17:48
flicktom15-Dec-05 17:48 
AnswerRe: Checkbox Arrays... Pin
flicktom15-Dec-05 18:26
flicktom15-Dec-05 18:26 
AnswerRe: Checkbox Arrays... Pin
J. Dunlap15-Dec-05 18:26
J. Dunlap15-Dec-05 18:26 
QuestionHit testing problem Pin
t800t815-Dec-05 15:44
t800t815-Dec-05 15:44 
AnswerRe: Hit testing problem Pin
Heath Stewart15-Dec-05 21:35
protectorHeath Stewart15-Dec-05 21:35 
GeneralRe: Hit testing problem Pin
t800t815-Dec-05 22:01
t800t815-Dec-05 22:01 
Question[URGENT] REGEX question Pin
Sam 200615-Dec-05 15:20
Sam 200615-Dec-05 15:20 
AnswerRe: [URGENT] REGEX question Pin
Christian Graus15-Dec-05 16:12
protectorChristian Graus15-Dec-05 16:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.