eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::SAXWriter':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SAXWriter (in XML)


Inheritance:

   Object
   |
   +--XML::SAXDriver
      |
      +--XML::SAXWriter

Package:
stx:goodies/xml/vw
Category:
XML-VW-SAX
Version:
rev: 1.4 date: 2023/05/02 16:41:36
user: cg
file: SAXWriter.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


SAXWriter is a kind of SAXDriver that converts SAX events back into textutal XML documents.

Instance Variables:
	attrMap	<Dictionary>	Lists the characters that are not allowed to appear literally in attributes, and maps them to their quoted form.
	hasOpenTag	<Boolean>	True if we are inside an element that has no content as yet. This allows us to know when we reach the end tag whether we can write the element as <x/> rather than <x></x>.
	newNamespaces	<nil | Dictionary>	Maps namespace qualifiers to URIs, for namespaces which the current element defines differently than its parent.
	normalizeText	<Boolean>	Should be true in almost all cases--can be false only if the "XML" document being parsed is actually not XML, in which case it may be legal to not quote characters such as $<.
	notations	<Collection>	List of notations defined in the document being parsed.
	output	<Stream>	Stream on which the XML is rendered as text.
	textMap	<Dictionary>	Lists the characters that are not allowed to appear literally in text, and maps them to their quoted form.


Instance protocol:

DTD handler
o  notationDecl: nameString publicID: publicIDString systemID: systemIDString

content handler
o  characters: aString from: start to: stop
(comment from inherited method)
cg: added for twoFlower compatibility with newer XMLParser framework

o  comment: data from: start to: stop

o  endElement: namespaceURI localName: localName qName: name

o  processingInstruction: targetString data: dataString

o  startDocument

o  startDocumentFragment
Nonstandard extension to SAX

o  startElement: namespaceURI localName: localName qName: name attributes: attributes

o  startPrefixMapping: prefix uri: uri

initialization
o  minimalCharacterMapping

o  normalizeText: aBoolean

o  output: aStream

private
o  closeOpenTag

o  emitDTD: name

o  emitNotation: array

o  sort: attributes



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:33:01 GMT