add some functions
Output all xml
fix missing tags in xml