# File nqxml/writer.rb, line 76 def attribute(name, value) if !@inStartTag raise WriterError.new('attribute outside of tag start') end @io << " #{name}=\#{NQXML.encode(value.to_s)}\" end