Validate XSL Against XML
page 1 of 3
Published: 13 Feb 2008
Abstract
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
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28996/ 57
Article Contents:

Introduction

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: 2/22/2008 4:27:19 PM
Comment:
good article
Title: Nice Article   
Name: Kamran Shahid
Date: 2/13/2008 2:14:58 AM
Comment:
Very nice article.






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


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 10/31/2014 9:00:05 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search