Validate XSL Against XML
page 1 of 3
Published: 13 Feb 2008
In this Article, Haissam Abdul Malak shows how to create a class library for validating a certain XSL file against an XML file. He examines the concept with the help of a series of steps with relevant source code and explanations. Finally, he describes how to test the class library which was created in the previous steps.
by Haissam Abdul Malak
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 23106/ 47
Article Contents:


I was working on a project where the user is required to provide his or her own XSL file to generate his or her own HTML page based on an XML file we provide. In this situation, the need to verify that the XSL file will display appropriate results and not an empty page is required. Because the requirement forced us to only display the HTML page when all the tags used in the XSL file exists in the XML file, is why I realized that we need to create a class library to catch this type of error.

The general steps of this article will be:

1.    Create a Class library project

2.    Create three methods: 1 public and 2 private

3.    Create a property which returns a Hash table containing the invalid Nodes in XSL file

4.    Test the class library

View Entire Article

User Comments

Title: Best   
Name: Hemant
Date: 2008-02-22 4:27:19 PM
good article
Title: Nice Article   
Name: Kamran Shahid
Date: 2008-02-13 2:14:58 AM
Very nice article.

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

©Copyright 1998-2024  |  Page Processed at 2024-06-18 6:02:53 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search