class XMLScan::XMLNamespaceDecoration::NamespaceDeclaration

Public Class Methods

new(parent) click to toggle source
    # File lib/xmlscan/namespace.rb
175 def initialize(parent)
176   @parent = parent
177 end

Public Instance Methods

on_attr_charref(code, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
193 def on_attr_charref(code, *a)
194   @nsdecl << [code].pack('U')
195 end
on_attr_charref_hex(code, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
197 def on_attr_charref_hex(code, *a)
198   @nsdecl << [code].pack('U')
199 end
on_attr_entityref(ref, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
188 def on_attr_entityref(ref, *a)
189   @parent.ns_wellformed_error \
190     "xmlns includes undeclared entity reference"
191 end
on_attr_value(str, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
184 def on_attr_value(str, *a)
185   @nsdecl << str
186 end
on_attribute_end(name, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
201 def on_attribute_end(name, *a)
202   @parent.on_xmlns_end @prefix, @nsdecl
203 end
on_xmlns_start(prefix, *a) click to toggle source
    # File lib/xmlscan/namespace.rb
179 def on_xmlns_start(prefix, *a)
180   @prefix = prefix
181   @nsdecl = ''
182 end