CodeSnip: Validating XML Data using the XML Schema Definition
page 1 of 4
Published: 02 Feb 2007
Abstract
This code snippet explains how to validate an XML Document with an XSD schema file.
by Uday Denduluri
Feedback
Average Rating: 
Views (Total / Last 10 Days): 18105/ 130

Introduction

The following will help someone understand the validation of XML files against the XML schema definition (XSD). Let us assume that we have an XML file and XSD file. We need to validate this XML file before we perform operations on it. The code snippets shown below are in written in the C# language. Some of the classes used were introduced in .NET Framework 2.0.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 5 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-2009 ASPAlliance.com  |  Page Processed at 1/7/2009 7:06:21 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search