Extremely simple plugin for powerful n98-magerun tool that will find mallformed XML files in Your Magento project.
All possible ways to do this are in the MageRun docs Following is my favourite method:
- Create
~/.n98-magerun/modules/
if it doesn't already exist. (or/usr/local/share/n98-magerun/modules
if you prefer that)
mkdir -p ~/.n98-magerun/modules/
- Clone plugin repository in there.
git clone git@github.com:KamilBalwierz/sxmlsv.git ~/.n98-magerun/modules/sxmlsv
- It should be installed.To see that it was installed, check to see if one of the new commands is in there.
n98-magerun sxmlsv:scan
n98-magerun sxmlsv:scan [directoryToScan]
There is only one command that will scan recursevly given directory or current directory if non specified.
It will attempt to parse all *.xml
files that it finds and will output fiels that were not loaded correclty.
And thats all, no more sophisticated logic inside.