This is not the XPathNavigator You are Looking For...

I’ve been working with some XML lately and was passing it around from object to object via an XPathNavigator.  At one location in the code I wanted to check the XML against a schema.  In 1.1 this required you to do a lot of round about moving of the data out of the XPathNavigator into a reader, etc, etc.  So, with all the changes in 2.0 I did a quick search on Google to see what I could find for using XPathNavigator and checking schemas.  What I found was this article entitled “Schema Validation using XPathNavigator".  Now, this sounds like it would be what I was looking for, but no. 

A few minutes later I discover the CheckValidity method on the XPathNavigator which does what I want without all the hassle in 1.1.