Merging XmlNode code from Claim and Circs.