rather than try to convince sed to match your corrupt line via regexp, just use awk to split the file into 2 pieces - the lines before the corrupt line (into file A) and the lines after the corrupt line (into file B).
Then cat the 2 files together, with your fixed line in the middle:
cat A > fixed.xml
echo "my fix" >> fixed.xml
cat B >> fixed.xml