Registering type maps (from and to) is the first step in DI patterns. Unity provides a couple of ways to register types.
“Unity” is another framework for DI and some more. It is part of MS Enterprise Library but can be installed separately through NuGet. The main purposes of “Unity” are late binding and loose coupling.
The “System.Xml.Xsl” namespace provides support for Extensible Stylesheet Transformation (XSLT) transforms.
XPath specifies how to query XML nodes. .NET provides “System.Xml.XPath” namespace to use XPath programmatically.
“System.Xml.XmlDocument” represents an XML document in DOM(Document Object Model). LINQ’s “XDocument” provides the much easier way to process XML documents and fragments but “XmlDocument” can be the way to process XML documents using DOM APIs.
Using LINQ, you can write a XML document quite intuitively. But this article will focus on the legacy classes in the “System.Xml” namesapce.
In some cases, XML Schema definitions are embedded in the XML document. It is called “Inline XML Schema”. If an Inline XML Schema is used, you cannot use “XmlSchemaSet” anymore and need to change the “XmlReaderSettings.ValidationFlags” property to enable the “ProcessInlineSchema” option.
XML schema is the recommended way of validating XML documents and the replacement of DTD. “System.Xml.Schema.XmlSchemaSet” is a collection of schemas and improves performance by caching schemas in memory.