The Tree Model implementation to be used for the constructed document. The main reason for using the Linked Tree alternative is if updating is required (the Tiny Tree is not updateable). This is used for resolving any relative URIs appearing within the document, for example in references to DTDs and external entities.This information is required when the document is loaded from a source that does not provide an intrinsic URI, notably when loading from a Stream or a Text Reader.
Once I've gone over the details of the class (named Xml Validator), I'll show you how to plug it into the Xml Import Service Windows service - detailed in my previous article entitled Improve Data Exchange - to validate "dropped" XML documents. I'll start with a brief overview of the Xml Import Service Windows service's functionality here in case you haven't read my previous article.
Line numbers are maintained only for element nodes; the line number returned for any other node will be that of the most recent element.
The required name of the top level element in a document instance being validated against a schema.
These classes are abstract and therefore must be extended.
This abstraction not only allows customized readers and writers to be created, but it also leaves the capability for these derived classes to be swapped in and out if needed.