added option to use short xml tags