A not-very-nice fix to XML constructors that takes Attributes into consideration