Platforms to show: All Mac Windows Linux Cross-Platform

XMLInputMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This interface represents a single input source for an XML entity.
Example

Dim xmlText As String = "<test id=""123""><f>1</f><f>2</f><f>3</f><f>4</f></test>"

Dim Input As New XMLInputMBS
Input.Encoding = "UTF-8"
Input.InputString = xmlText

Dim parser As New XMLParserMBS
Dim doc As XMLDocumentMBS = parser.parse(Input)

// inspect document in debugger
MessageBox doc.toString

This interface allows an application to encapsulate information about an input source in a single object, which may include a public identifier, a system identifier, a byte stream (possibly with a specified encoding), and/or a character stream.

There are two places that the application will deliver this input source to the parser: as the argument to the parse method, or as the return value of the XMLResourceResolverMBS.resolveResource method.

The XMLParserMBS will use the XMLInputMBS object to determine how to read XML input. If there is a character stream available, the parser will read that stream directly; if not, the parser will use a byte stream, if available; if neither a character stream nor a byte stream is available, the parser will attempt to open a URI connection to the resource identified by the system identifier.

A XMLInputMBS object belongs to the application: the parser shall never modify it in any way (it may modify a copy if necessary).

This class has no sub classes.

Some methods using this class:


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


XMLExceptionMBS   -   XMLIterateAttributeNodesMBS


The biggest plugin in space...