xml: Adding xml_document_array object and functions