Search
XmlLoader Class
Remarks See Also
 





Provides methods for loading component hierarchies from XML.

Namespace: MindFusion.Diagramming.Components
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public sealed class XmlLoader

Visual Basic  Copy Code

Public NotInheritable Class XmlLoader

 Remarks

This class can be used to load component trees defined in XML. To load a component tree invoke one of the static Load overloads. Three groups of loading methods are provided. The first group of methods operates on an XML Stream, the second group loads XML specified through a string and the third group of methods works directly on an XmlDocument. Each group contains overloads which accept an object that can be used to automatically attach event handlers defined in the XML and to resolve properties. An additional overload is provided, which accepts an ITypeResolver instance. Using a custom type resolver will reduce the loading time if the XML contains references to external types.

All Load methods throw exception if the loading fails for any reason. The type of the thrown exceptions is usually XmlLoaderException.

For additional information see Components and XML.

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Components.XmlLoader

 See Also