Added an XML formatter typeclass for XML parsing and creation.