class Nokogiri::XML::Document

def fragment(tags = nil)

Returns an empty fragment if +tags+ is nil.
Create a Nokogiri::XML::DocumentFragment from +tags+
#
def fragment(tags = nil)
  DocumentFragment.new(self, tags, root)
end