fix XmlAttribute regressions #237