[XmlProvider constructors] Support heterogeneous records (closes #581) + Add test with namespaces (closes #585)