Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultObjectDefinitionDocumentReader.PreProcessXml Method

Allow the XML to be extensible by processing any custom element types first, before we start to process the object definitions.

[Visual Basic]
Protected Overridable Sub PreProcessXml( _
   ByVal root As XmlElement _
)
[C#]
protected virtual void PreProcessXml(
   XmlElement root
);

Parameters

root
The root element of the XML document.

Remarks

This method is a natural extension point for any other custom pre-processing of the XML.

The default implementation is empty. Subclasses can override this method to convert custom elements into standard Spring object definitions, for example. Implementors have access to the parser's object definition reader and the underlying XML resource, through the corresponding properties.

See Also

DefaultObjectDefinitionDocumentReader Class | Spring.Objects.Factory.Xml Namespace