keep xml attributes on nodes