eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::OXSAXTestDriver':

Home

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

Class: OXSAXTestDriver (in XML)


Inheritance:

   Object
   |
   +--XML::SAXDriver
      |
      +--XML::OXSAXTestDriver

Package:
stx:goodies/xml/vw
Category:
XML-VW-Testing
Version:
rev: 1.5 date: 2017/02/17 10:13:54
user: stefan
file: OXSAXTestDriver.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


Author: Roger Whitney whitney@cs.sdsu.edu
Version: 1.0  
Date: 4/2/2000
License: Camp Smalltalk 

OXSAXTestDriver is used to test the OXSAXBuilder.

Instance Variables:
	document        <Stream>        Used to accumulate the text of an XML document


Instance protocol:

accessing
o  document

content handler
o  characters: aString

o  endDocument

o  endElement: localName namespace: nameSpace prefix: nameSpacePrefix
(comment from inherited method)
indicates the end of an element. See startElement

o  ignorableWhitespace: aString

o  processingInstruction: target data: data

o  startDocument

o  startElement: localName namespace: nameSpace prefix: nameSpacePrefix attributes: atts
(comment from inherited method)
Receive notification of the beginning of an element.

Parameters:
localName <String> - The local name of the element(without prefix)
namespace <String> The Namespace URI, Nil if the element has no Namespace URI
prefix <String> Prefix of the tag name used to indicate a namespace. Nil if absent
attributes <OrderedCollection of Attribute (XML::Attribute)> The attributes attached to the element.

Example (note two single quotes were used instead of a double quote char)
<doc xmlns=''http://www.doc.org/'' xmlns:other=''http://www.other.com/''>
<a>A text</a>
<other:b>BA text</other:b>
<c other:cat=''meow''>C text</c>
<d xmlns=''http:/nested/''></d>
</doc>

Parameter values to this method for each element of the above XML:

local name: 'doc' namespace: 'http://www.doc.org/' prefix: ''
local name: 'a' namespace: 'http://www.doc.org/' prefix: ''
local name: 'b' namespace: 'http://www.other.com/' prefix: 'other'
local name: 'c' namespace: 'http://www.doc.org/' prefix: ''
local name: 'd' namespace: 'http:/nested/' prefix: ''

Note the attribute object also have namespaces

initialize
o  initialize



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 17 Nov 2019 03:20:42 GMT