TXmlWriter
Facility to write an XML formatted document to a
TOutputStream
.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TXmlWriter |
Source
Xml.Writer.pas (73)
Description
TXmlWriter
is implemented as a state machine meaning that certain functions can only be called when the writer is the correct state for
the intended operation. For instance, trying to write attribute values for which the start tag has already been closed is illegal and an
EXmlWriterInvalidState
will be raised.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | protected | TOutputStream | Stream | |
Instance | protected | TStack<TXmlWriterState> | States | |
Instance | protected | TCharacterEncoding | FEncoding | |
Instance | public | TInteger32 | IndentSize | |
Instance | public | TText | EndOfLine |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | protected | WriteCharacter(Character: TCharacterCodePoint) | ||
Instance | protected | Write(Value: TText) | ||
Instance | protected | WriteBeginOfLine() | ||
Instance | protected | WriteLine(Line: TText) | ||
Instance | public | Create(Stream: TOutputStream; Encoding: TCharacterEncoding) | ||
Instance | public | Destroy() | ||
Instance | public | WriteHeader() | ||
Instance | public | StartElement(Name: TText) | ||
Instance | public | StartElement(Namespace: TXmlNamespace; Name: TText) | ||
Instance | public | WriteElement(Name: TText) | ||
Instance | public | WriteElement(Name: TText; CharacterData: TText) | ||
Instance | public | WriteElement(Namespace: TXmlNamespace; Name: TText) | ||
Instance | public | EndElement(EndTag: TXmlEndTag) | ||
Instance | public | StartAttribute(Name: TText) | ||
Instance | public | StartAttribute(Namespace: TText; Name: TText) | ||
Instance | public | WriteAttribute(Name: TText; Value: TText) | ||
Instance | public | EndAttribute() | ||
Instance | public | CharacterData(Value: TText) | ||
Instance | public | WriteCharacterEntity(Code: TInteger32) | ||
Instance | public | WriteCharacterReference(Reference: TCharacterReference) | ||
Instance | public | WriteCdata(Value: TText) | ||
Instance | public | WriteComment(Comment: TText) | ||
Instance | public | StartDtd(Name: TText; PublicId: TText; SystemId: TUri) | ||
Instance | public | EndDtd() |