From: Love U Ruby Date: 2013-06-09T14:45:39+09:00 Subject: Nokogiri::XML::AttributeDecl methods output understanding Hi, Today morning my target is going through the ` Nokogiri::XML::AttributeDecl` methods. So I wrote some simple codes to understand these methods: require 'nokogiri' doc = Nokogiri::XML::Document.new # => # attdcl = Nokogiri::XML::AttributeDecl.new('bar',doc) # => #"> attdcl.enumeration # => [] attdcl.attribute_type # => 0 attdcl.default # => nil Now my questions are below : (a) why does `attdcl.enumeration` give empty array? What I need to change to get an non-empty array? (b) why does `attdcl.default` give `nil`? What I need to change to get an non-nil value? Thanks -- Posted via http://www.ruby-forum.com/.