Basic element and attribute xml element generation