title: How to repair malformed XML?
body: <p>What is best practice to repair malformed XML files with PHP? For example CDATA part contains illegal chars.  With regular expressions? Or execute some Linux command line tools? </p>