implement quirks for weird XML representation