Fixing files with BOM
Woops! You edited a file with XML Copy Editor, but missed this note about how to make it safe to use. Now when you try to validate, you’re getting mysterious messages about “Content not allowed in prolog,” and your terminal looks something like this:
The fix is easy:
cd
to the directory with your edited file (something likecd /vagrant/YOUR_REPOS/editions/Iliad
orcd /vagrant/YOUR_REPOS/editions/scholia
).- Fix the file with this command
bomstrip-files FILE_NAME
(whereFILE_NAME
might be something likeVenetusA-Iliad.xml
orMainScholia.xml
). - Make sure you check the configuration of XML Copy Editor following these instructions.