serializer.xmlstream - Palamecia/mint GitHub Wiki
load serializer.xmlstream
This module provides the Serializer.XmlStream class which allow to read and write XML documents.
This enum describe the behaviour of the readElementText method when a child element is encountred.
Constant | Value | Description |
---|---|---|
ErrorOnUnexpectedElement | 0 |
The children elements makes the stream raises an instance of Serializer.Docum... |
IncludeChildElements | 1 |
The children elements are included in the element text. |
SkipChildElements | 2 |
The children elements are ignored. |
This enum describe the current state of the parser. The values of this enum will be used to check how to handle the next character.
Constant | Value | Description |
---|---|---|
ReadAttributeName | 15 |
Reading a tag attribute name (<... ... ) |
ReadAttributeValue | 16 |
Reading a tag attribute value (<... ...="..." ) |
ReadCDataOpen | 4 |
Reading a CDATA open token (<![CDATA[ ) |
ReadCDataValue | 5 |
Reading the content of a CDATA (<![CDATA[...]]> ) |
ReadCharacters | 3 |
Reading character inside a markup (<tag>...</tag> ) |
ReadComment | 2 |
Reading a comment (<!-- ... --> ) |
ReadDtdOpen | 6 |
Reading a DTD open token (<!DOCTYPE ) |
ReadDtdValue | 7 |
Reading the content of a DTD (<!DOCTYPE ... [ ... ]> ) |
ReadNext | 0 |
Waiting for a new element |
ReadOpen | 1 |
Reading an opening token (< ) |
ReadProcessingInstructionAttributeName | 10 |
Reading a processing instruction attribute name (<?... ... ) |
ReadProcessingInstructionAttributeValue | 11 |
Reading a processing instruction attribute value (<?... ...="..." ) |
ReadProcessingInstructionTagEnd | 8 |
Reading a processing instruction close token (?> ) |
ReadProcessingInstructionTagName | 9 |
Reading a processing instruction tag name (<?... ) |
ReadTagEnd | 12 |
Reading a tag close token (</...> ) |
ReadTagEndEmpty | 13 |
Reading an empty tag close token (<.../> ) |
ReadTagName | 14 |
Reading a tag name (<... ) |
Constant | Value | Description |
---|---|---|
CDATA | 8 |
|
Characters | 6 |
|
Comment | 7 |
|
DTD | 9 |
|
EndDocument | 3 |
|
EndElement | 5 |
|
Invalid | 0 |
|
ProcessingInstruction | 1 |
|
StartDocument | 2 |
|
StartElement | 4 |
This class is the representation of an XML attribute.
Modifiers | Member | Description |
---|---|---|
const |
!= | Returns false if other is the same attribute than self ; otherwise retur... |
const |
== | Returns true if other is the same attribute than self ; otherwise return... |
const |
getLocalName | Returns the local name of the attribute. |
const |
getNamespaceUri | Returns the namespace URI of the attribute. |
const |
getPrefix | Returns the prefix (namespace) of the attribute. |
const |
getQualifiedName | Returns the qualified name of the attribute (prefix + name). |
const |
getValue | Returns the value of the attribute. |
const |
new | Creates a new empty attribute. |
const |
setValue | Sets the value of the attribute to value . |
const |
toString | Returns the string representation of the attribute. |
Modifiers | Member | Description |
---|---|---|
final |
localName | Internal attribute name. |
final |
namespaceUri | Internal attribute namespace URI. |
final |
qualifiedName | Internal attribute qualified name. |
final |
value | Internal attribute value. |
This class is the representation of an element's XML attributes.
Modifiers | Member | Description |
---|---|---|
const |
!= | Returns true if other is not equal to this list of attributes; otherwise ... |
const |
:= | Copies the attributes contained in other into self then returns self . |
const |
<< | Inserts attr at the end of the list. |
const |
== | Returns true if other is equal to this list of attributes; otherwise retu... |
const |
[] | Returns the attribute at the given index . |
const |
[]= | Sets the value of the first attribute with the given qualifiedName to val ... |
const |
clear | Removes all the attributes of the list. |
const |
contains | Returns true if the list contains an attribute with the given qualifiedNa ... |
const |
containsNS | Returns true if the list contains an attribute with the givens namespaceU ... |
const |
get | Returns the first attribute with the given qualifiedName . |
const |
getNS | Returns the first attribute with the givens namespaceUri and localName . |
const |
in | Returns true if the list contains an attribute with the given qualifiedNa ... |
const |
indexOf | Returns the index position of the first attribute with the given qualifiedN ... |
const |
indexOfNS | Returns the index position of the first attribute with the givens namespace ... |
const |
insert | Creates a new attribute with the given qualifiedName and value at the giv... |
const |
insertNS | Creates a new attribute with the given namespaceUri , qualifiedName and ``... |
const |
isEmpty | Returns true if the list is empty; otherwise returns false . |
const |
remove | Removes the first attribute with the given qualifiedName . |
const |
removeNS | Removes the first attribute with the givens namespaceUri and localName . |
const |
size | Returns the number of attributes in the list. |
const |
toString | Returns the string representation of the attribute list. |
const |
value | Returns the value of the first attribute with the given qualifiedName . Retu... |
const |
valueNS | Returns the value of the first attribute with the givens namespaceUri and ... |
Modifiers | Member | Description |
---|---|---|
final |
attributes | Internal attributes. |
This class class provides a way to read and write XML documents.
Modifiers | Member | Description |
---|---|---|
const |
<< | Writes the content of data to the stream using the write function, then ret... |
enum |
ReadElementTextBehaviour | This enum describe the behaviour of the readElementText method when a child e... |
enum |
TokenType | |
@ const
|
escapeString | Returns the content of str with special characters escaped to be inserted i... |
const |
getAttributes | Returns current element's attributs as instances of Serializer.XmlAttributes. |
const |
getDocumentEncoding | Returns the name of the encoding used by the document. |
const |
getDocumentVersion | Returns the version of the XML standard used by the document. |
const |
getLocalName | Returns the name of the current element. |
const |
getNamespaceUri | Returns the namespace URI of the current element. |
const |
getPrefix | Returns the prefix (namespace) of the current element. |
const |
getProcessingInstructionData | Returns the current processing instruction's data as instances of Serializer.... |
const |
getProcessingInstructionTarget | Returns the current processing instructions's target. |
const |
getQualifiedName | Returns the qualified name of the current element (prefix + name). |
const |
getText | Returns the current texte. |
const |
getTokenString | Returns the last read token's text as a string. |
const |
getTokenType | Returns the last read token's type as a value of Serializer.XmlSaxStream.Toke... |
const |
isAutoClosing | Returns true if the stream automaticaly close the markups when writing; oth... |
const |
isCDATA | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isCharacters | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isComment | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isDTD | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isEndDocument | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isEndElement | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isIndented | Returns true if the stream indent the XML when writing; otherwise returns ... |
const |
isProcessingInstruction | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isStandaloneDocument | Returns true if the standalone attribute of the document is set; otherwise ... |
const |
isStartDocument | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
isStartElement | Returns true if the last read token's type is Serializer.XmlStream.TokenTyp... |
const |
new | Creates a new stream for reading and writing data using stream . |
override const
|
read | Reads the next token of the stream and returns its type. The stream context i... |
const |
readElementText | Returns the whole text contained in the current element. The behaviour must... |
const |
readStartElement | Reads the stream until the next Serializer.XmlStream.TokenType.StartElement t... |
const |
setAutoClosing | Enables the automatic closing of the markups writed to the stream. If enabl ... |
const |
setIndented | Enables the indentation of the XML writed to the stream. If indented is t ... |
const |
skipCurrentElement | Reads the stream until the end of the current element. |
@ const
|
toLocalName | Returns the local name corresponding to the given qualifiedName . |
const |
write | Writes the XML described by data to the stream. The XML will be adapted to ... |
const |
writeCData | Writes a CDATA section to the output stream. Returns true on success; other... |
const |
writeCharacters | Writes a character section to the output stream. Returns true on success; o... |
const |
writeComment | Writes a comment section to the output stream. Returns true on success; oth... |
const |
writeDtd | Writes a DTD section to the output stream. Returns true on success; otherwi... |
const |
writeEmptyElement | Writes an opening element to the output stream. Returns true on success; ot... |
const |
writeEmptyElementNS | Writes an opening element to the output stream. Returns true on success; ot... |
const |
writeEndDocument | Ends the data writing to the output stream. Returns true on success; otherw... |
const |
writeEndElement | Writes a closing element to the output stream. If the element tag name does n... |
const |
writeEndElementNS | Writes a closing element to the output stream. If the element tag name does n... |
const |
writeProcessingInstruction | Writes a processing instruction to the output stream. Returns true on succe... |
const |
writeStartDocument | Begins the data writing to the output stream. Returns true on success; othe... |
const |
writeStartElement | Writes an opening element to the output stream. Returns true on success; ot... |
const |
writeStartElementNS | Writes an opening element to the output stream. Returns true on success; ot... |
Modifiers | Member | Description |
---|---|---|
class |
Reader | This class provides a parser to convert an XML stream to tokens. |
class |
Writer | This class provides a writer to convert events to formated XML into a stream. |
final |
reader | Internal reader context. |
final |
writer | Internal writer context. |
This class provides a parser to convert an XML stream to tokens.
Modifiers | Member | Description |
---|---|---|
class |
Attribute | This class describe an attribute. |
class |
NamespaceDeclaration | This class describe a namespace declaration. |
enum |
State | This enum describe the current state of the parser. The values of this enum w... |
class |
Tag | This class describe an element tag. |
final |
attributes | |
final |
encoding | |
final |
hasCheckedStartDocument | |
final |
namespaceUri | |
const |
new | Creates a new parser on the stream given by stream . |
const |
parse | Reads the XML document and parses it until the next token. Returns true if ... |
final |
qualifiedName | |
final |
standalone | |
final |
state | |
final |
text | |
final |
tokenString | |
final |
type | |
final |
version |
Modifiers | Member | Description |
---|---|---|
final const
|
eatWhiteSpace | Returns the next non white space character. |
final |
elements | |
final const
|
handleEndElement | Handles a end element token. |
final const
|
handleStartElement | Handles a start element token. |
final const
|
handleXmlAttribute | Handles an XML attribute. |
final |
internalAttributes | |
final const
|
namespaceForPrefix | Returns the namespace URI for the given prefix . |
final |
namespaces | |
final const
|
parseAttrValue | Returns the content of the next attribute value of the stream. An instance of... |
final const
|
parseEscapeSequence | Returns the value corresponding to the next escape sequence of the stream. An... |
final const
|
resolveNamespaces | Resolve all namepaces for the current element |
final |
stream | Internal stream object. |
This class describe an attribute.
Modifiers | Member | Description |
---|---|---|
final |
prefix | |
final |
qualifiedName | |
final |
value |
This class describe a namespace declaration.
Modifiers | Member | Description |
---|---|---|
final |
prefix | |
final |
uri |
This class describe an element tag.
Modifiers | Member | Description |
---|---|---|
final |
namespaceIndex | |
final |
namespaceUri | |
final |
qualifiedName |
This class provides a writer to convert events to formated XML into a stream.
Modifiers | Member | Description |
---|---|---|
final |
autoClose | Internal automatic closing state. |
final |
indented | Internal indentation format state. |
const |
new | Creates a new writer on the stream given by stream . |
const |
onCData | Writes a CDATA section to the output stream. Returns true to continue input... |
const |
onCharacters | Writes a character section to the output stream. Returns true to continue i... |
const |
onComment | Writes a comment section to the output stream. Returns true to continue inp... |
const |
onDtd | Writes a DTD section to the output stream. Returns true to continue input s... |
const |
onEndDocument | Ends the data writing to the output stream. Returns true to continue input ... |
const |
onEndElement | Writes a closing element to the output stream. If the element tag name does n... |
const |
onProcessingInstruction | Writes a processing instruction to the output stream. Returns true to conti... |
const |
onStartDocument | Begins the data writing to the output stream. Returns true to continue inpu... |
const |
onStartElement | Writes an opening element to the output stream. Returns true to continue in... |
Modifiers | Member | Description |
---|---|---|
final |
elements | Internal element stack. |
final |
indentationLevel | Internal current indentation level. |
final |
openElement | Internal element state. |
final |
stream | Internal stream object. |
def (const self, const other)
Returns false
if other
is the same attribute than self
; otherwise
returns true
.
def (const self, const other)
Returns true
if other
is the same attribute than self
; otherwise
returns false
.
def (const self)
Returns the local name of the attribute.
def (const self)
Returns the namespace URI of the attribute.
def (const self)
Returns the prefix (namespace) of the attribute.
def (const self)
Returns the qualified name of the attribute (prefix + name).
def (const self)
Returns the value of the attribute.
''
Internal attribute name.
''
Internal attribute namespace URI.
def (self)
Creates a new empty attribute.
def (self, qualifiedName, value)
Creates a new attribute with the given qualifiedName
and value
.
def (self, namespaceUri, qualifiedName, value)
Creates a new attribute with the given namespaceUri
, qualifiedName
and value
.
''
Internal attribute qualified name.
def (const self, const value)
Sets the value of the attribute to value
.
def (const self)
Returns the string representation of the attribute.
''
Internal attribute value.
def (const self, const other)
Returns true
if other
is not equal to this list of attributes; otherwise
returns false
.
Two lists are considered equal if they contain the same attributes in the same order.
def (self, other)
Copies the attributes contained in other
into self
then returns
self
.
def (self, attr)
Inserts attr
at the end of the list.
def (const self, const other)
Returns true
if other
is equal to this list of attributes; otherwise
returns false
.
Two lists are considered equal if they contain the same attributes in the same order.
def (const self, const index)
Returns the attribute at the given index
.
def (self, const qualifiedName, const value)
Sets the value of the first attribute with the given qualifiedName
to
value
. If no element matched, a new attribute is created at the end of
the list.
[]
Internal attributes.
def (self)
Removes all the attributes of the list.
def (const self, const qualifiedName)
Returns true
if the list contains an attribute with the given
qualifiedName
; otherwise returns false
.
def (const self, const namespaceUri, const localName)
Returns true
if the list contains an attribute with the givens
namespaceUri
and localName
; otherwise returns false
.
def (const self, const qualifiedName)
Returns the first attribute with the given qualifiedName
.
def (const self, const namespaceUri, const localName)
Returns the first attribute with the givens namespaceUri
and
localName
.
def (const self, const qualifiedName)
Returns true
if the list contains an attribute with the given
qualifiedName
; otherwise returns false
.
def (const self)
Returns an iterator
on each attribute of the list.
def (const self, const qualifiedName)
Returns the index position of the first attribute with the given
qualifiedName
. Returns none
if no element matched.
def (const self, const namespaceUri, const localName)
Returns the index position of the first attribute with the givens
namespaceUri
and localName
. Returns none
if no element matched.
def (self, index, qualifiedName, value)
Creates a new attribute with the given qualifiedName
and value
at
the given index
.
def (self, index, namespaceUri, qualifiedName, value)
Creates a new attribute with the given namespaceUri
, qualifiedName
and value
at the given index
.
def (const self)
Returns true
if the list is empty; otherwise returns false
.
def (self, const qualifiedName)
Removes the first attribute with the given qualifiedName
.
def (self, const namespaceUri, const localName)
Removes the first attribute with the givens namespaceUri
and
localName
.
def (const self)
Returns the number of attributes in the list.
def (const self)
Returns the string representation of the attribute list.
def (const self, const qualifiedName)
Returns the value of the first attribute with the given qualifiedName
.
Returns none
if no element matched.
def (const self, const namespaceUri, const localName)
Returns the value of the first attribute with the givens namespaceUri
and localName
. Returns none
if no element matched.
def (self, data)
Writes the content of data
to the stream using the write
function, then returns a reference to the stream.
0
The children elements makes the stream raises an instance of Serializer.DocumentStream.InvalidDocument.
1
The children elements are included in the element text.
2
The children elements are ignored.
''
''
''
''
''
15
Reading a tag attribute name (<... ...
)
16
Reading a tag attribute value (<... ...="..."
)
4
Reading a CDATA open token (<![CDATA[
)
5
Reading the content of a CDATA (<![CDATA[...]]>
)
3
Reading character inside a markup (<tag>...</tag>
)
2
Reading a comment (<!-- ... -->
)
6
Reading a DTD open token (<!DOCTYPE
)
7
Reading the content of a DTD (<!DOCTYPE ... [ ... ]>
)
0
Waiting for a new element
1
Reading an opening token (<
)
10
Reading a processing instruction attribute name (<?... ...
)
11
Reading a processing instruction attribute value (<?... ...="..."
)
8
Reading a processing instruction close token (?>
)
9
Reading a processing instruction tag name (<?...
)
12
Reading a tag close token (</...>
)
13
Reading an empty tag close token (<.../>
)
14
Reading a tag name (<...
)
none
''
''
null
def (self, c)
Returns the next non white space character.
[]
'UTF-8'
def (self, isEmptyTag)
Handles a end element token.
def (self)
Handles a start element token.
def (self, qualifiedName, value)
Handles an XML attribute.
false
[]
def (self, prefix)
Returns the namespace URI for the given prefix
.
''
[]
def (self, stream)
Creates a new parser on the stream given by stream
.
def (self)
Reads the XML document and parses it until the next token. Returns true
if the parsing is completed successfully; otherwise returns false
,
indicating that an event has not been correctly handled by the handler.
An instance of Serializer.DocumentStream.InvalidDocument is raised on error.
def (self)
Returns the content of the next attribute value of the stream.
An instance of Serializer.DocumentStream.InvalidDocument is raised on error.
def (self, c)
Returns the value corresponding to the next escape sequence of the stream.
An instance of Serializer.DocumentStream.InvalidDocument is raised on error.
''
def (self)
Resolve all namepaces for the current element
false
null
null
Internal stream object.
''
''
null
'1.0'
8
6
7
9
3
5
0
1
2
4
false
Internal automatic closing state.
[]
Internal element stack.
0
Internal current indentation level.
false
Internal indentation format state.
def (self, stream)
Creates a new writer on the stream given by stream
.
def (self, content)
Writes a CDATA section to the output stream. Returns true
to continue input stream parsing.
def (self, content)
Writes a character section to the output stream. Returns true
to continue input stream parsing.
def (self, content)
Writes a comment section to the output stream. Returns true
to continue input stream parsing.
def (self, content)
Writes a DTD section to the output stream. Returns true
to continue input stream parsing.
def (self)
Ends the data writing to the output stream. Returns true
to continue
input stream parsing.
def (self, namespaceUri, localName, qualifiedName)
Writes a closing element to the output stream. If the element tag
name does not match the previously opened element, the function
returns false
to interput the parsing; otherwise returns true
.
def (self)
Writes a closing element to the output stream matching the last opened
element. If no element is open, the function returns false
to
interput the parsing; otherwise returns true
.
def (self, localName, attributes)
Writes a processing instruction to the output stream. Returns true
to continue input stream parsing.
def (self)
Begins the data writing to the output stream. Returns true
to
continue input stream parsing.
def (self, namespaceUri, localName, qualifiedName, attributes)
Writes an opening element to the output stream. Returns true
to
continue input stream parsing.
false
Internal element state.
null
Internal stream object.
def (str)
Returns the content of str
with special characters escaped to be
inserted in an XML document.
def (const self)
Returns current element's attributs as instances of Serializer.XmlAttributes.
def (const self)
Returns the name of the encoding used by the document.
def (const self)
Returns the version of the XML standard used by the document.
def (const self)
Returns the name of the current element.
def (const self)
Returns the namespace URI of the current element.
def (const self)
Returns the prefix (namespace) of the current element.
def (const self)
Returns the current processing instruction's data as instances of Serializer.XmlAttributes.
def (const self)
Returns the current processing instructions's target.
def (const self)
Returns the qualified name of the current element (prefix + name).
def (const self)
Returns the current texte.
def (const self)
Returns the last read token's text as a string.
def (const self)
Returns the last read token's type as a value of Serializer.XmlSaxStream.TokenType.
def (const self)
Returns true
if the stream automaticaly close the markups when writing;
otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.CDATA; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.Characters; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.Comment; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.DTD; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.EndDocument; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.EndElement; otherwise returns false
.
def (const self)
Returns true
if the stream indent the XML when writing; otherwise
returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.ProcessingInstruction; otherwise returns
false
.
def (const self)
Returns true
if the standalone attribute of the document is set;
otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.StartDocument; otherwise returns false
.
def (const self)
Returns true
if the last read token's type is
Serializer.XmlStream.TokenType.StartElement; otherwise returns false
.
def (self, stream)
Creates a new stream for reading and writing data using stream
.
def (self)
Reads the next token of the stream and returns its type. The stream context is the updated with the token informations.
def (self, behaviour = Serializer.XmlStream.ReadElementTextBehaviour.ErrorOnUnexpectedElement)
Returns the whole text contained in the current element. The behaviour
must be a value from ReadElementTextBehaviour that describe the
behaviour of this method when a child element is encountred. If the stream
is not on an Serializer.XmlStream.TokenType.StartElement token, none
is
returned.
def (self)
Reads the stream until the next Serializer.XmlStream.TokenType.StartElement
token. Returns true
if a token was found; otherwise returns false
.
null
Internal reader context.
def (self, enabled)
Enables the automatic closing of the markups writed to the stream. If
enabled
is true
, the markups will be automaticaly closed; otherwise
the unclosed markups will be keeped to be slosed later.
Closed markups example:
<?xml version="1.0" encoding="UTF-8"?>
<document attr="value">
<tag attr="value"/>
</document>
Unclosed markups example:
<?xml version="1.0" encoding="UTF-8"?>
<document attr="value">
<tag attr="value"/>
By default, the markups are not closed.
def (self, enabled)
Enables the indentation of the XML writed to the stream. If indented
is true
, the XML will be indented; otherwise the XML will be compact.
Indented example:
<?xml version="1.0" encoding="UTF-8"?>
<document attr="value">
<tag attr="value"/>
</document>
Compact example:
<?xml version="1.0" encoding="UTF-8"?><document attr="value"><tag attr="value"/></document>
By default, the data is not indented.
def (self)
Reads the stream until the end of the current element.
def (qualifiedName)
Returns the local name corresponding to the given qualifiedName
.
def (self, data)
Writes the XML described by data
to the stream. The XML will be adapted
to match the configuration sets by setIndented and
setAutoClosing. Returns true
if all the data have been correctly
writed; otherwise returns false
. If the content of the data
is not a
valid XML, an instance of Serializer.DocumentStream.InvalidDocument is
raised.
def (self, content)
Writes a CDATA section to the output stream. Returns true
on
success; otherwise returns false
.
def (self, content)
Writes a character section to the output stream. Returns true
on
success; otherwise returns false
.
def (self, content)
Writes a comment section to the output stream. Returns true
on
success; otherwise returns false
.
def (self, content)
Writes a DTD section to the output stream. Returns true
on
success; otherwise returns false
.
def (self, qualifiedName, attributes = Serializer.XmlAttributes ())
Writes an opening element to the output stream. Returns true
on
success; otherwise returns false
.
def (self, namespaceUri, localName, qualifiedName, attributes = Serializer.XmlAttributes ())
Writes an opening element to the output stream. Returns true
on
success; otherwise returns false
.
def (self)
Ends the data writing to the output stream. Returns true
on
success; otherwise returns false
.
def (self, qualifiedName)
Writes a closing element to the output stream. If the element tag
name does not match the previously opened element, the function
returns false
; otherwise returns true
.
def (self)
Writes a closing element to the output stream.
def (self, namespaceUri, localName, qualifiedName)
Writes a closing element to the output stream. If the element tag
name does not match the previously opened element, the function
returns false
; otherwise returns true
.
def (self, localName, attributes)
Writes a processing instruction to the output stream. Returns true
on
success; otherwise returns false
.
def (self)
Begins the data writing to the output stream. Returns true
on
success; otherwise returns false
.
def (self, qualifiedName, attributes = Serializer.XmlAttributes ())
Writes an opening element to the output stream. Returns true
on
success; otherwise returns false
.
def (self, namespaceUri, localName, qualifiedName, attributes = Serializer.XmlAttributes ())
Writes an opening element to the output stream. Returns true
on
success; otherwise returns false
.
null
Internal writer context.