An enhanced XmlValidation[Ex]Step?

Topics: Developer Forum
Nov 30, 2007 at 10:59 AM
Hi Benjy.
Not sure if this is something that by rights should be in the core BizUnit framework - have emailed Kev to see what he thinks.

The current XmlValidationStep/XmlValidationExStep could be enhanced the following ways:
  1. Use of .NET 2.0 XmlReader/XmlReaderSettings classes to properly handle Xsd imports/includes (instead of the .NET 1.x XmlValidatingReader which is currently used)
  2. Combination of SelectSingleNode and XPathNavigator mechanisms so that one step can handle simple XPath statements along with XPath statements which use functions (e.g. count(), boolean())
  3. Possibly look at support of XPath 2.0
  4. Include John Bundred's useful idea of creating an XmlNamespaceManager to handle XPath queries which use prefixes (possibly specify this via config file if can't leave it on all the time?)

I created a sample XmlValidationStep for items 1) and 2) which I use myself.
You can see the code/download it here:


Daniel Probert
Jan 23, 2008 at 8:15 AM
Hi Daniel,
Apologies for the delay in getting back. I was away on a long holiday in India and returned only last weekend. Yes, the points you raise are valid and I will take a look at the code. One of my colleagues rewrote an internal utility which does xmlvalidation using a lot of the .NET 2.0 stuff and i am going to put that into the extensions library. I will have a look at your step and incorporate that as well if you want.