I already have the XML. That's why samtregar's suggestion isn't ideal.
Also, as we've seen, escaping the & and the quotes isn't a big deal, it's the < and > that I'm having trouble with.
A regex like s/>/>/g; would eliminate all of the >, which isn't a good thing.