add new methods, renderXml().