Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need to get attibute name Pin
Paddy Boyd24-Apr-09 1:46
Paddy Boyd24-Apr-09 1:46 
QuestionReport Pin
sulimanpasha24-Apr-09 1:19
sulimanpasha24-Apr-09 1:19 
AnswerRe: Report Pin
scottgp24-Apr-09 1:40
professionalscottgp24-Apr-09 1:40 
GeneralRe: Report [modified] Pin
sulimanpasha24-Apr-09 2:17
sulimanpasha24-Apr-09 2:17 
GeneralRe: Report Pin
DoctorMick24-Apr-09 4:31
DoctorMick24-Apr-09 4:31 
GeneralRe: Report Pin
sulimanpasha26-Apr-09 18:01
sulimanpasha26-Apr-09 18:01 
QuestionConvert HTML to DOC in C#.Net Pin
vivek_r24-Apr-09 1:15
vivek_r24-Apr-09 1:15 
QuestionValidate XML with DTD Pin
Rohit16db24-Apr-09 0:26
Rohit16db24-Apr-09 0:26 
Hi guys,

Hope you are doing well.

I have a Onix complaint XML document that I want to validate it with some Onix complaint DTD. I did coding for same in C#

XmlReaderSettings settings = null;
try
{

string xmlPath = Server.MapPath("XML/nielsen_onix.XML");


//Load XML into XmlTextReader
// reader = new XmlTextReader(xmlPath);
//Load XmlTextReader into XmlValidatingReader
settings = new XmlReaderSettings();

//Set the validation type
settings.ValidationType = ValidationType.DTD;
settings.ProhibitDtd = false;
settings.CheckCharacters = false;
//Hook up the XmlValidatingReader’s
//ValidationEventHandler to a call
//back method named ValidationCallBack
settings.ValidationEventHandler += new ValidationEventHandler(
this.ValidationCallBack);
XmlReader reader = XmlReader.Create(xmlPath, settings);
//Read through the XML document by calling
//the Read() method
while (reader.Read()) { }

//Check boolean field named valid (located at top of code)
if (valid)
Response.Write("Validation is Successful!");
reader.Close();
}
catch(Exception ex) {
Response.Write(ex.Message);
}

This code runs good and show the xml file invaid while my xml file is valid when I validated it on
http://www.w3schools.com/XML/xml_validator.asp[^]

Could you please check what's wrong going with me?

Any help would be highly appreciable.

Thanks
Rohit
Questiona problem with UpdatePanel Pin
wertyk23-Apr-09 23:59
wertyk23-Apr-09 23:59 
AnswerRe: a problem with UpdatePanel Pin
Sundeep Ganiga24-Apr-09 0:50
Sundeep Ganiga24-Apr-09 0:50 
QuestionHtml Editor dll Pin
Hemalatha.A.M.23-Apr-09 23:47
Hemalatha.A.M.23-Apr-09 23:47 
Questionhow to display a message box after execution of save button code Pin
anuj sweet23-Apr-09 23:14
anuj sweet23-Apr-09 23:14 
AnswerRe: how to display a message box after execution of save button code Pin
SayreCC23-Apr-09 23:27
SayreCC23-Apr-09 23:27 
GeneralRe: how to display a message box after execution of save button code Pin
anuj sweet24-Apr-09 0:50
anuj sweet24-Apr-09 0:50 
GeneralRe: how to display a message box after execution of save button code Pin
antony beula24-Apr-09 3:57
antony beula24-Apr-09 3:57 
QuestionProblem in executing web site Pin
daddanakuna23-Apr-09 23:08
daddanakuna23-Apr-09 23:08 
AnswerRe: Problem in executing web site Pin
SayreCC23-Apr-09 23:30
SayreCC23-Apr-09 23:30 
AnswerRe: Problem in executing web site Pin
Rakesh Kapuriya23-Apr-09 23:41
Rakesh Kapuriya23-Apr-09 23:41 
GeneralRe: Problem in executing web site Pin
daddanakuna24-Apr-09 0:57
daddanakuna24-Apr-09 0:57 
QuestionIE 8- Creating New Troubles. Pin
Dev S23-Apr-09 21:52
Dev S23-Apr-09 21:52 
Questionhelp in coding /query for disbaling Pin
svknair23-Apr-09 21:46
svknair23-Apr-09 21:46 
AnswerRe: help in coding /query for disbaling Pin
sekannak24-Apr-09 0:49
sekannak24-Apr-09 0:49 
GeneralRe: help in coding /query for disbaling Pin
sekannak24-Apr-09 2:01
sekannak24-Apr-09 2:01 
QuestionPosting value from one page to another Pin
IamAmit23-Apr-09 21:39
IamAmit23-Apr-09 21:39 
AnswerRe: Posting value from one page to another Pin
SeMartens23-Apr-09 21:50
SeMartens23-Apr-09 21:50 

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.