1

The standard validation for XML in PHP is done with DOMDocument::schemaValidate. This has two problems: error line numbers only work to files up to 65535 lines, and, for large files, the DOM is created first, which has memory limits if the file is large.

What are good alternatives to run on a LINUX machine that will most importantly overcome the memory issue and secondly be able to show the error on lines more than 65535?

0 Answers0