# File lib/html/xpath.rb, line 63
    def as_rexml_document(context = {})
      node = REXML::Document.new(nil, context)
      # add DocType

      # add <HTML> node

      html_node.as_rexml_document(node, context)
      node
    end