Sign in Join
FPDoc Onlineexperiment

TXMLInputSource class

In unit Laz2_XMLRead

Represents the input source for XML content.

Declaration

pascal
TXMLInputSource = class(TObject)

Inheritance

  1. TXMLInputSource
  2. TObject

Description

TXMLInputSource is a class used to represent an input source with XML content. TXMLInputSource is based on the DOM InputSource interface from DOM Level 3. It is not a fully compliant implementation of the interface. It does not implement separate byteStream and characterStream properties; the Stream and StringData properties are provided instead. In addition, it does not implement the Encoding property. All values in are expected to use the UTF-8 encoding.

Use the overloaded constructors to create an input source with either a string or a stream as the storage for the XML content.

A TXMLInputSource instance is passed as an argument to the TDOMParser.Parse and TDOMParser.ParseWithContext methods. It is subsequently passed to the TXMLReader instance that reads XML content from the input source.

See also

Properties

StreampublicStream with the XML content for the input source.
StringDatapublicString with the XML content for the input source.
BaseURIpublicBase URI for content in the XML input source.
SystemIDpublicSystem Identifier for content in the XML input source.
PublicIDpublicPublic Identifier for content in the XML input source.

Methods

CreatepublicConstructor for the class instance.

Inherited

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.