php - How to repair malformed XML? -


What is the best practice to repair flawed XML files with PHP? For example, are the illegal characters in the CDATA part with regular expression? Or execute some Linux command line tools?

Clearly binding to HTML and repair utility which You do not only allow clean and otherwise manipulate HTML documents, but the document also crosses the tree. Configuration $ config = array ('indent' = & gt; true, 'input-xml' = & gt; true, 'output-xml' = & gt; true, 'rap' = & gt; wrong); // clean $ clean = new clean; $ Clear-> Parasympatry ('sample.xml', $ config); $ Tidy-> CleanRepair (); // output dumb dumb;


Comments