Add xml doctype encoding feadture