# File lib/nokogiri/xml/node.rb, line 491 def self.new_from_str string $stderr.puts("This method is deprecated and will be removed in 1.3.0 or by March 1, 2009. Instead, use Nokogiri::XML::Node#fragment") Nokogiri::HTML.fragment(string).first end