-- added XML encoding