XML validation is the process of checking a document written in XML (e Xtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure.
A well-formed document follows the basic syntactic rules of XML, which are the same for all XML documents.
For example, you can visually specify the order in which different XML processing steps should occur, and can even debug the entire application and deploy it to your production environment in just minutes.
In this tutorial, we'll cover how to build an example XML application using XML pipeline.
/* In the sample example, the source file contains 2 records.
On applying XSL Transformation, the Result file contains only 1 record.
The following table describes the options for the Xml Read Mode argument. Examines the XML and chooses the most appropriate option in the following order: - If the XML is a Diff Gram, Diff Gram is used.- If the Data Set contains a schema or the XML contains an inline schema, Read Schema is used.- If the Data Set does not contain a schema and the XML does not contain an inline schema, Infer Schema is used.Validation using XSL Technology : XSLT [Extended Stylesheet Language Transformation] is basically used for transforming the input xml File from one form to another, which could be .html, etc.Here, we use XSLT to transform the input Xml File to a form that we require for further processing [for instance, we could transform it in a form that could be directly passed as a parameter to a Database Stored Procedure for further processing].In the following sample XML application, we'll building an order report.This will involve some XML processing, for example, applying various XML operations (converting, parsing, validating, transforming and publishing XML) on several data sources.