What’s so bad about building XML with string concatenation?

You can end up with invalid XML, but you will not find out until you parse it again – and then it is too late. I learned this the hard way.

Leave a Comment