If you want to validate an XML document against a DTD that is not referenced by the document itself, you can use the keyword argument to parse from a file.This also enables correct handling of include files from within the Relax NG parser.If you ever need to pass an XPath as argument to the XSLT stylesheet you can pass in an etree.XPath object (see XPath and XSLT with lxml: Stylesheet-parameters for background on this).Pass an Element or Element Tree object to construct a Schematron validator: .Schematron automatically converts these parameters to stylesheet parameters so you need not worry to set string parameters using quotes or to use XSLT.strparam().The The usage of validation phases is a unique feature of ISO-Schematron and can be a very powerful tool e.g.
An then https://microsoft.com/Forums/en-US/bae7266a-df66-48eb-9a4e-be871ceba5a8/xml-validation-using-xslt-from-c? forum=netfxbcl hope that helps stew Hi, sudip_inn, Extensible Stylesheet Language Transformations (XSLT) provides a way to automatically transform XML data from one format to another. more information about what is xslt.please refer to the following link: https://msdn.microsoft.com/en-us/library/ms759096(v=vs.85) as far as I know, we could use xslt to validate xml. For more information, you could refer to the following link: Best regards Cathy MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue.