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.2 date: 2017/02/17 10:13:41
user: stefan
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

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

initialize
o  minimalCharacterMapping

o  normalizeText: aBoolean

o  output: aStream

private
o  closeOpenTag

o  emitDTD: name

o  emitNotation: array

o  sort: attributes



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 06 Dec 2019 08:05:39 GMT