# File lib/fog/libvirt/models/compute/util.rb, line 10
      def document path, attribute=nil
        return nil if new?
        xml = REXML::Document.new(self.xml)
        attribute.nil? ? xml.elements[path].text : xml.elements[path].attributes[attribute]
      end