def xml_serialize_documents(xml, documents)
        return if documents.empty?

        xml.send(:documents) {
          documents.each do |document|