module REXML::StreamListener

def attlistdecl element_name, attributes, raw_content

methods.
attr CDATA #REQUIRED". This is the same for all of the .*decl
EG, will come to this method as "el
method to be called. The content is the declaration itself, unparsed.
If a doctype includes an ATTLIST declaration, it will cause this
def attlistdecl element_name, attributes, raw_content
end

def cdata content

@p content "..."
Called when is encountered in a document.
def cdata content
end

def comment comment

@p comment The content of the comment
Called when a comment is encountered.
def comment comment
end

def doctype name, pub_sys, long_name, uri

@p uri the uri of the doctype, or nil. EG, "bar"
@p long_name the supplied long name, or nil. EG, "foo"
@p pub_sys "PUBLIC", "SYSTEM", or nil. EG, "PUBLIC"
@p name the name of the doctype; EG, "me"
not supplied will be nil. # EG,
Handles a doctype declaration. Any attributes of the doctype which are
def doctype name, pub_sys, long_name, uri
end

def doctype_end

Called when the doctype is done
def doctype_end
end

def elementdecl content

def elementdecl content
end

def entity content

@p content "foo"
Called when %foo; is encountered in a doctype declaration.
def entity content
end

def entitydecl content

["hatch-pic", "SYSTEM", "../grafix/OpenHatch.gif", "gif"]

["open-hatch", "PUBLIC", "-//Textuality//TEXT Standard open-hatch boilerplate//EN", "http://www.textuality.com/boilerplate/OpenHatch.xml"]

["open-hatch", "SYSTEM", "http://www.textuality.com/boilerplate/OpenHatch.xml"]

["WhatHeSaid", "He said %YN;"]

["YN", "Yes", "%"]

["YN", "\"Yes\"", "%"]

returns (example, result):
declaration. It can be in a number of formats, but in general it
The argument passed to this method is an array of the entity
def entitydecl content
end

def instruction name, instruction

"sheet='foo'"
@p instruction the rest of the instruction. In the example,
@p name the instruction name; in the example, "xsl"
Called when an instruction is encountered. EG:
def instruction name, instruction
end

def notationdecl content

def notationdecl content
end

def tag_end name

@p the name of the tag
will be called immediately after tag_start
Called when the end tag is reached. In the case of , tag_end
def tag_end name
end

def tag_start name, attrs

tag_start( "tag", # [["attr1","value1"],["attr2","value2"]])
will result in
use with assoc or rassoc. IE,
@p attrs an array of arrays of attribute/value pairs, suitable for
@p name the tag name
Called when a tag is encountered.
def tag_start name, attrs
end

def text text

@p text the text content.
Called when text is encountered in the document
def text text
end

def xmldecl version, encoding, standalone

@p standalone the standalone attribute value, or nil. EG, nil
@p encoding the encoding attribute value, or nil. EG, "utf"
@p version the version attribute value. EG, "1.0"
EG:
Called when an XML PI is encountered in the document.
def xmldecl version, encoding, standalone
end