[XmlProvider constructors] Support the Items|Item optimization (closes #584) + Test json values in xml elements (closes #583)