Xml properties changed to ToXml() function

For X-Framework compatibles