eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::Comment':

Home

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

Class: Comment (in XML)


Inheritance:

   Object
   |
   +--XML::Node
      |
      +--XML::Comment

Package:
stx:goodies/xml/vw
Category:
XML-VW-Nodes
Version:
rev: 1.12 date: 2013/07/03 07:04:25
user: stefan
file: Comment.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


This class represents an XML comment. XML comments may appear anywhere in an XML document outside other markup or within the document type declaration at places allowed by grammar.

 XML comments are delimited by the start-tag '<!!!!!!!!--' and the end-tag '-->'. 

According to the XML 1.0 specification, for compatibilty, double-hyphens (the string '--') must not occur within comments.

Instance Variables:
	text    <String>  contents of the comment element


Instance protocol:

accessing
o  text

o  text: aText

o  xPath

o  xpathStringData

comparing
o  = anXmlComment

o  hash

printing
o  prettyPrintOn: aStream depth: indent

o  printCanonicalOn: aStream

o  printHTMLOn: aStream

o  printNoIndentOn: aStream endSpacing: endSpacingBlock spacing: spacingBlock

o  printOn: aStream

testing
o  isComment

visiting
o  acceptVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 12:56:39 GMT