Class NQXML::Text
In: nqxml/entities.rb
nqxml/dispatcher.rb
examples/reverseText.rb
examples/reverseTags.rb
examples/printEntityClassNames.rb
examples/dumpXML.rb
Parent: Entity
Methods
==    event_key    new    to_s    to_s    to_s    to_s    to_s    writeXMLTo   
Attributes
:text  [R] 
Public Class methods
new(text, source=nil)
Public Instance methods
==(anObj)

We ignore the source attribute because during parsing entity reference substitution may cause us to lose the ability to know what the original XML source was.

to_s()

Returns text with all entities replaced.

writeXMLTo(io, beforeChildren=true)

Write XML to io. Use the "<<" method, not print or puts, because io might be a String or Array and not an IO object.

event_key()
to_s()

Return the text string reversed. We replace all '<' with '&lt;' so that the result is still legal in an XML document.

to_s()

Instead of returning the text with entities substituted, return the original source if we have it.

to_s()
to_s()

Return the text string, or nil if the text is empty or is all whitespace.