The root element of the document. If the document is newly created and not yet set up a root, XmlError will be thrown.
Dispose the object.
It releases the managed resource and unregisters them from FinalizationRegistry. So the release of the managed resource won't need to wait until this object is garbage collected.
This needs to be called explicitly to avoid resource leak,
or declare the object with using declaration.
StaticcreateCreate a new document from scratch. To parse an existing xml, use fromBuffer or fromString.
StaticfromParse and create an XmlDocument from an XML buffer.
The XML buffer
Parsing options
StaticfromParse and create an XmlDocument from an XML string.
The XML string
Parsing options
Base implementation of interface Disposable to handle wasm memory.
Remember to call
dispose()for any subclass object.