CodeSnip: Validating XML Data using the XML Schema Definition
page 4 of 4
by Uday Denduluri
Feedback
Average Rating: 
Views (Total / Last 10 Days): 17599/ 171

Conclusion

Let us conclude the topic by summarizing all the operations.

1.    Create an XMLDocument object and load the XML file.

2.    Create an XMLNodeReader object and input the object of the XMLDocument.

3.    Create an XMLSettings object and do the following 2 operations:

·         Load the schema object.

·         Add the validation event handler.

4.    Read the XmlDocument using the XmlReader.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 2 and 1 and type the answer here:

User Comments

Title: CodeSnip: Validating XML Data using the XML Schema Definition   
Name: my name? Your name? The name of the article?
Date: 3/19/2007 9:30:20 PM
Comment:
This code won't actually compile. That may be my fault, but I am pretty sure that there are some sytaxish errors here:
if(!String.IsNullOrEmpty(ErrorMessage.ToString()))
{
MessageBox.Show(ErrorMessage.ToString());
}
where does ErrorMessage get defined?

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 12/3/2008 7:44:52 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search