lib/xamplr/from-xml.rb in xamplr-1.9.1 vs lib/xamplr/from-xml.rb in xamplr-1.9.2
- old
+ new
@@ -41,11 +41,13 @@
a << klass unless found
end
end
def FromXML.registered(name)
+ #puts "registered by ns tag: #{ @@by_ns_tag.keys.sort.inspect }"
klass = @@by_ns_tag[name]
+ #puts "registered by tag: #{ @@by_tag.keys.sort.inspect }"
klass = @@by_tag[name] unless klass
klass = [] unless klass
return klass
end
@@ -135,9 +137,10 @@
if ((nil != namespace) and (0 < namespace.size)) then
klass_name = "{#{namespace}}#{name}"
klasses = FromXML.registered(klass_name)
if (0 == klasses.size) then
# The class has not been registered (either it was never generated, or it was never loaded)
+ puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] Don't know about class name: #{ klass_name }"
# puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] @@by_ns_tag: #{ @@by_ns_tag.inspect }"
# puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] @@by_tag: #{ @@by_tag.inspect }"
xml_text = XMLText.new
xml_text.build(self)
xml_text = parent.note_adding_text_content(xml_text, @is_realising)