Load and validate the mappings in the XmlReader against the nhibernate-mapping-2.2 schema, without adding them to the configuration.

Namespace: NHibernate.Cfg
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public NamedXmlDocument LoadMappingDocument(
	XmlReader hbmReader,
	string name
)
Visual Basic
Public Function LoadMappingDocument ( _
	hbmReader As XmlReader, _
	name As String _
) As NamedXmlDocument
Visual C++
public:
NamedXmlDocument^ LoadMappingDocument(
	XmlReader^ hbmReader, 
	String^ name
)

Parameters

hbmReader
Type: System.Xml..::..XmlReader
The XmlReader that contains the mapping.
name
Type: System..::..String
The name of the document, for error reporting purposes.

Return Value

NamedXmlDocument containing the validated XmlDocument built from the XmlReader.

Remarks

This method is made public to be usable from the unit tests. It is not intended to be called by end users.

See Also