Simplify XML parser