Adds toXmlString and toLyString