Platforms to show: All Mac Windows Linux Cross-Platform

Back to XMLDocumentMBS class.

XMLDocumentMBS.DocType as XMLDocumentTypeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the document type.

The Document Type Declaration (see XMLDocumentTypeMBS) associated with this document. For XML documents without a document type declaration this returns nil.
The DOM Level 2 does not support editing the Document Type Declaration. docType cannot be altered in any way, including through the use of methods inherited from the XMLNodeMBS interface, such as insertNode or removeNode.
(Read only property)

XMLDocumentMBS.DocumentElement as XMLElementMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This is a convenience attribute that allows direct access to the child node that is the root element of the document.

(Read only property)

Some examples using this property:

XMLDocumentMBS.DocumentURI as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The location of the document or "" if undefined.

Beware that when the XMLDocumentMBS supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.
(Read and Write property)

XMLDocumentMBS.DOMConfig as XMLConfigurationMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The configuration used when normalizeDocument is invoked.

(Read only property)

XMLDocumentMBS.InputEncoding as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The input encoding.
Example

Dim xml As String

xml = "<?xml version='1.0' encoding='ISO-8859-1'?>" +_
EndOfLine.UNIX +_
"<doc><test>tränenüberströmt</test></doc>"

// make sure the variable has the encoding declared above!
xml = ConvertEncoding(xml, encodings.ISOLatin1)

Dim doc As New XMLDocumentMBS(xml)

MessageBox doc.InputEncoding

An attribute specifying the encoding used for this document at the time of the parsing. This is "" when it is not known, such as when the XMLDocumentMBS was created in memory.
(Read only property)

XMLDocumentMBS.StrictErrorChecking as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether errors checking is enforced or not

An attribute specifying whether errors checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any XMLExceptionMBS. In case of error, the behavior is undefined. This attribute is true by defaults.
(Read and Write property)

XMLDocumentMBS.XmlEncoding as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An attribute specifying, as part of the XML declaration, the encoding of this document.

This is "" when unspecified or when it is not known, such as when the XMLDocumentMBS was created in memory.
(Read only property)

XMLDocumentMBS.XmlStandalone as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this is a standalone document.

An attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.
(Read and Write property)

XMLDocumentMBS.XmlVersion as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An attribute specifying, as part of the XML declaration, the version number of this document.

This is "" when unspecified.
(Read and Write property)

The items on this page are in the following plugins: MBS XML Plugin.


The biggest plugin in space...