So you're creating not-well-formed XML yourself and then complaining that XML parsers don't process it? It's a little hard to have sympathy with your viewpoint in that case. Why don't you just create well-formed XML instead?