Platforms to show: All Mac Windows Linux Cross-Platform

XMLConfigurationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The XMLConfigurationMBS interface represents the configuration of a document and maintains a table of recognized parameters.
Example
// parse it
Var doc As New XMLDocumentMBS("<test id=""123""><f>1</f><f>2</f><f>3</f><f>4</f></test>")

// create serializer
Var serializer As New XMLSerializerMBS

// options
Var config As XMLConfigurationMBS = serializer.DOMConfig
serializer.NewLine = EndOfLine
config.SpaceFirstLevelElements = False
config.FormatPrettyPrint = True

// and output to string
Var s1 As String = serializer.writeToString(doc)

// options
config.FormatPrettyPrint = False

// and output to string
Var s2 As String = serializer.writeToString(doc)

Break // compare in debugger

Using the configuration, it is possible to change Document.normalizeDocument behavior, such as replacing CDATASection nodes with Text nodes or specifying the type of the schema that must be used when the validation of the Document is requested. XMLConfigurationMBS objects are also used in [DOM Level 3 Load and Save] in the XMLParserMBS and XMLSerializerMBS interfaces.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no sub classes.

Some properties using for this class:

Some related classes:


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


XMLCommentMBS   -   XMLDocumentFragmentMBS


The biggest plugin in space...