Permalink
Browse files

Work with root node instead of document

  • Loading branch information...
Matt Olson
Matt Olson committed Mar 6, 2012
1 parent 895aaa9 commit 8b7276d2881f23b17d6236f2bcde3bc866198468
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubyXL/parser.rb
View
@@ -321,7 +321,7 @@ def self.parse_worksheet(wb, filename)
for_element 'sheetViews' do
sv = outer_xml
puts "Found sheet view: #{sv}" if @@debug
- sv = RubyXL::Parser.parse_xml(sv)
+ sv = RubyXL::Parser.parse_xml(sv).root
puts "Parsed sheet views: type = #{sv.type}; obj = #{sv}" if @@debug
worksheet.sheet_view = Hash.xml_node_to_hash(sv)
puts "Hash of sheet views object: #{worksheet.sheet_view}" if @@debug

0 comments on commit 8b7276d

Please sign in to comment.