XmlWriter2: fixed output of multiple nested elements