Articles   Dev Forums   Personalize   Favorites   Member Login        Active Users:  92
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Saturday, July 05, 2008
Home
Articles & Samples
Dev Search
Dev Forum
Add a Listing
Sample Chapters
Directory Feed
Link to US
Contact

Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts

Trusted by over 7 million customers!
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search
How to validate an XML file with an XSD file       
Total Hits: 1192  |  Today: 0       Rating:  
Read Reviews | Write Review |              Your Rating: 

Utlimately I want to be able to parse an xml STRING with an xsd STRING but this is the best I could do: parsing an xml FILE with an xsd FILE. I basically reworked a console application example in the MSDN help file into a nicer looking ASP.NET Web form example. It tells you if your file is not well-formed and then if it is not valid it lists out the specific reason (like in XMLSpy), quite helpful to find an error in a large XML file as it returns the line number on which the error occurred as well as the tag name. This was done in Visual Studio .NET so to get it to work you will have to change the code around to whatever you want to do. Notice that you have to have the namespace in the root element of the XML file.

What's New at DevASP
03/22  ASP.NET AJAX Control Development
03/22  ASP.NET AJAX meets Virtual Earth ..
03/22  ASP.NET AJAX meets Virtual Earth ..
02/22  Building AJAX scroller control us..
02/22  Dirty Panel Extender (ASP.NET AJA..
02/22  A Stoppable Timer Control for ASP..
02/22  flickr Spell Extender Control for..
02/22  AJAX AutoComplete/AutoSuggest Tex..
02/22  AJAX Multi-Task Indicator
02/22  Professional file uploads with th..
02/22  An Ajax image list control to man..
02/22  An information box control to dis..
02/22  MultiUpload, a smarter file uploa..
02/22  Grid Live Refresh
02/22  ASP.NET AJAX Extender for multico..
02/22  Integrating AJAX
02/22  Troubleshooting Partial Rendering..
02/22  Ajaxion - Ajax without javascript..
02/22  ASP.NET Validation using Ajax
02/22  Using Associative Arrays for Clie..
Latest Posts at Dev Forums
I wanna create a log file
Method to automatically delete a datab..
example of editing in DataGrid and Def..
flash+combobox+access
Any Free HTML to PDF converter library..
Any Free HTML to PDF converter library..
mod_rewrite
online leave system
Error at CDONTS.NewMail
ASp.net https problem with firefox
CDONTS NewMail Object
How to reduce the processing time of S..
searching and paging
RegExp Problem
Transparent Encryption
Transparent Encryption
text search within dynamic file
Commit and Rollback in ASP with JAVASC..
how to build db for using in listboxes..
asp and xml packets

DevASP - Privacy - Disclaimer
Copyright © 2008 DevASP.com