DeviceXml
Static class in Oadm.Sdk.Vapix · Oadm.Sdk.dll
The only way OADM and its plugins parse XML that came from a device: documents of at most DeviceXml.MaxCharacters characters (1 MB), DTD processing prohibited, no external resolver. Too large, a DTD or malformed XML throw XmlException.
public static class DeviceXmlGuide: Devices and VAPIX
Methods
Section titled “Methods”CreateReaderSettings
Section titled “CreateReaderSettings”static XmlReaderSettings CreateReaderSettings()New reader settings with the limits (callers may add options such as IgnoreComments).
static XDocument Parse(string xml, LoadOptions options = None)Parses a document from a device.
Exceptions
XmlException: Malformed, larger than 1 MB or with a DTD.
static XDocument Parse(string xml, XmlReaderSettings settings, LoadOptions options = None)Parses a document from a device with adjusted settings; the limits are enforced again.
Exceptions
XmlException: Malformed, larger than 1 MB or with a DTD.
ParseElement
Section titled “ParseElement”static XElement ParseElement(string xml, LoadOptions options = None)The root element of a document from a device.
Exceptions
XmlException: Malformed, larger than 1 MB, with a DTD or without a root element.
Fields
Section titled “Fields”MaxCharacters
Section titled “MaxCharacters”const int MaxCharacters = 1048576Largest XML document parsed from a device (1 MB of characters).