using xml tree for markup