Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConfigurationReader.ReadFromXmlDocument Method

Read from the specified configuration from the supplied XML document into a NameValueCollection.

[Visual Basic]
Public Shared Sub ReadFromXmlDocument( _
   ByVal document As XmlDocument, _
   ByVal configSectionName As String _
)
[C#]
public static NameValueCollection ReadFromXmlDocument(
   XmlDocument document,
   string configSectionName
);

Parameters

document
The XmlDocument to read from.
configSectionName
The configuration section name to read.

Return Value

A newly populated NameValueCollection.

Remarks

Note    Does not support section grouping. The supplied XML document must already be loaded.

Exceptions

Exception Type Condition
XmlException If any errors are encountered while reading (this only applies to v1.1 and greater of the .NET Framework).
Exception If any errors are encountered while reading (this only applies to v1.0 of the .NET Framework).
FatalObjectException If the configuration section was otherwise invalid.

See Also

ConfigurationReader Class | Spring.Objects.Factory.Config Namespace