Click here to Skip to main content
15,887,676 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: RadioButtonList and CheckBoxList Pin
Besa726-Mar-10 5:13
Besa726-Mar-10 5:13 
GeneralRe: RadioButtonList and CheckBoxList Pin
s.mn7-Mar-10 23:46
s.mn7-Mar-10 23:46 
GeneralRe: RadioButtonList and CheckBoxList Pin
Besa728-Mar-10 21:58
Besa728-Mar-10 21:58 
AnswerRe: RadioButtonList and CheckBoxList Pin
edge116-Mar-10 2:50
edge116-Mar-10 2:50 
Questioni want some demo of asp.net project for online mobile shoppy Pin
poonam jagdale4-Mar-10 19:32
poonam jagdale4-Mar-10 19:32 
AnswerRe: i want some demo of asp.net project for online mobile shoppy Pin
ko__marek4-Mar-10 19:52
ko__marek4-Mar-10 19:52 
AnswerRe: i want some demo of asp.net project for online mobile shoppy Pin
ko__marek4-Mar-10 19:54
ko__marek4-Mar-10 19:54 
QuestionValidatingreader is obsolete Pin
ishwarya mahadevan4-Mar-10 18:40
ishwarya mahadevan4-Mar-10 18:40 
Hi,
I m currently developing a project on Xml Editor in vb.net...While trying to validate the xml against dtd i m getting the following error :

XmlValidatingReader is obsolete.

I tried using XmlReaderSettings but its showing an error saying that "The XmlSchemaSet on the document is either null or has no schemas in it. Provide schema information before calling Validate."

This is the coding i ve written :


Dim xmlV As New XmlDocument
Dim xmlP As New XmlTextReader(TempFile)
Dim settings As New XmlReaderSettings
Dim eventhandler As ValidationEventHandler
eventhandler = New ValidationEventHandler(AddressOf WriteErrorLog)
xmlV.Validate(eventhandler)
settings.ValidationType = ValidationType.DTD
settings.ProhibitDtd = False
Dim reader As XmlReader
reader = XmlReader.Create(xmlP, settings)
xmlV.Load(reader)
ErrStr = ""
ListBox1.Items.Clear()
IsValid = True
Do
Try
If reader.Read() Then
lineInf = CType(xmlV, IXmlLineInfo)
End If
Catch exx As Exception
Try
IsValid = False
If lineInf.HasLineInfo Then
ErrStr = lineInf.LineNumber.ToString + ": " + lineInf.LinePosition.ToString + " " + exx.Message
End If
If exx.Message.IndexOf("EndElement") > 1 Then
Exit Do
End If
ListBox1.Items.Add(ErrStr)
Catch eeex As Exception
MsgBox("Some unexpected error occurred " + vbNewLine + eeex.Message, MsgBoxStyle.Information, "Error")
Exit Do
End Try
End Try
Loop While Not xmlP.EOF
reader.Close()
xmlP.Close()
Me.Cursor = System.Windows.Forms.Cursors.Default
If IsValid = False Then
MsgBox("File is not valid", MsgBoxStyle.Exclamation, "Error")
Else
MsgBox("File is valid", MsgBoxStyle.Information, "OK")
End If
End Sub

Can anyone pls help me out in finding the error??? THanks in advance.
Questionlightbox with other information Pin
Tridip Bhattacharjee4-Mar-10 18:37
professionalTridip Bhattacharjee4-Mar-10 18:37 
QuestionDatetime Pin
4anusha44-Mar-10 18:35
4anusha44-Mar-10 18:35 
AnswerRe: Datetime [modified Pin
Dinesh Mani4-Mar-10 18:55
Dinesh Mani4-Mar-10 18:55 
GeneralRe: Datetime [modified Pin
4anusha44-Mar-10 19:32
4anusha44-Mar-10 19:32 
AnswerDatetime Pin
Manish_Kumar_Nayak6-Mar-10 0:46
Manish_Kumar_Nayak6-Mar-10 0:46 
AnswerRe: Datetime Pin
carlecomm7-Mar-10 14:48
carlecomm7-Mar-10 14:48 
QuestionGraph/Chart control Pin
Tufail Ahmad4-Mar-10 18:08
Tufail Ahmad4-Mar-10 18:08 
AnswerRe: Graph/Chart control Pin
Pranay Rana4-Mar-10 19:00
professionalPranay Rana4-Mar-10 19:00 
GeneralRe: Graph/Chart control Pin
Tufail Ahmad4-Mar-10 19:11
Tufail Ahmad4-Mar-10 19:11 
GeneralRe: Graph/Chart control Pin
Pranay Rana4-Mar-10 19:30
professionalPranay Rana4-Mar-10 19:30 
AnswerRe: Graph/Chart control Pin
carlecomm7-Mar-10 14:50
carlecomm7-Mar-10 14:50 
QuestionUser Written Functions Pin
asdrog4-Mar-10 13:37
asdrog4-Mar-10 13:37 
AnswerRe: User Written Functions Pin
FyreWyrm4-Mar-10 14:44
FyreWyrm4-Mar-10 14:44 
AnswerRe: User Written Functions Pin
Abhijit Jana4-Mar-10 16:59
professionalAbhijit Jana4-Mar-10 16:59 
AnswerRe: User Written Functions Pin
Pranay Rana4-Mar-10 19:05
professionalPranay Rana4-Mar-10 19:05 
GeneralRe: User Written Functions Pin
asdrog5-Mar-10 4:09
asdrog5-Mar-10 4:09 
QuestionCompare Validator Pin
FEMDEV4-Mar-10 5:23
FEMDEV4-Mar-10 5:23 

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.