Brecham.Obex — An OBEX library for the .NET Framework

ObexXmlUtilities.CreateXmlReaderSettings Method 

Create an XmlReaderSettings object configured to use the library's XmlResolver and with other suitable settings.

[Visual Basic]
Public Shared Function CreateXmlReaderSettings() As XmlReaderSettings
[C#]
public static XmlReaderSettings CreateXmlReaderSettings();

Return Value

An XmlReaderSettings instance, configured as discussed below.

Remarks

The settings are configured as follows. For validation and DTD handling, the ObexXmlResolver is supplied and ProhibitDtd and ValidationType are set respectively. On the general settings, CloseInput is set to true so that the input Stream is closed when the XmlReader is closed.

See Also

ObexXmlUtilities Class | Brecham.Obex.Objects Namespace