module REXML::StreamListener
def attlistdecl element_name, attributes, raw_content
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
Called when is encountered in a document.
def cdata content end
def comment comment
Called when a comment is encountered.
def comment comment end
def doctype name, pub_sys, long_name, uri
@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
def doctype_end end
def elementdecl content
def elementdecl content end
def entity content
Called when %foo; is encountered in a doctype declaration.
def entity content end
def entitydecl content
["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
@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
will be called immediately after tag_start
Called when the end tag is reached. In the case of
def tag_end name end
def tag_start name, attrs
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
Called when text is encountered in the document
def text text end
def xmldecl version, encoding, standalone
@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