# File ext/libxml/tests/tc_xml_document.rb, line 4 def setup() xp = XML::Parser.new() assert_instance_of(XML::Parser, xp) str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>' assert_equal(str, xp.string = str) @doc = xp.parse assert_instance_of(XML::Document, @doc) end