I had coded quite a large number of frames in the Artes Latinae project when I hit a wall. I kept getting an error that was preventing the project from loading on my web browser.
Finally, Marco came to my rescue with the next command for me to learn in hand.... XMLLINT !
We all know what a lint roller is right? It cleans up all of the lint from our clothes. Weeeell... XMLLINT is a program, that is on every unix installation, that checks XML (and HTML) syntax. So, running the XMLLINT command on your terminal for the file you are using will show you where any XML (and HTML) errors are so that you can "clean them up" and fix them!
Once all of the errors have been fixed, you run the XMLLINT command again and you will see your entire XML (and HTML) code displayed in your terminal!
Here is how the XMLLINT command responded when I had errors: *(I highlighted in yellow and changed the font to red so that you can see the errors that XMLLINT was finding)
Here's a small part of how the XMLLINT command responded after I "cleaned up" and fixed the errors, and no other additional errors were found:
(It shows my XML code from my Sublime Text Editor)
Pretty cool huh?! XMLLINT = FTW !
Finally, Marco came to my rescue with the next command for me to learn in hand.... XMLLINT !
We all know what a lint roller is right? It cleans up all of the lint from our clothes. Weeeell... XMLLINT is a program, that is on every unix installation, that checks XML (and HTML) syntax. So, running the XMLLINT command on your terminal for the file you are using will show you where any XML (and HTML) errors are so that you can "clean them up" and fix them!
Once all of the errors have been fixed, you run the XMLLINT command again and you will see your entire XML (and HTML) code displayed in your terminal!
Here is how the XMLLINT command responded when I had errors: *(I highlighted in yellow and changed the font to red so that you can see the errors that XMLLINT was finding)
Lisas-MBP:Unit-15 user$ xmllint ArtesLatinae15.xml
ArtesLatinae15.xml:3092: parser error : Opening and ending tag mismatch: lessonFrame line 1747 and unit
</unit>
^
ArtesLatinae15.xml:3092: parser error : Premature end of data in tag lessonFrame line 1616
</unit>
^
ArtesLatinae15.xml:3092: parser error : Premature end of data in tag unit line 1
</unit>
Here's a small part of how the XMLLINT command responded after I "cleaned up" and fixed the errors, and no other additional errors were found:
(It shows my XML code from my Sublime Text Editor)
Lisas-MBP:Unit-15 user$ xmllint ArtesLatinae15.xml
<?xml version="1.0"?>
<unit id="15">
<lessonFrame id="1" topic="review">
The accusative plural of the Third, Fourth, and Fifth Declensions also have the signal of length of vowel and -s. This means that to form an accusative plural of a Third Declension noun you change the -em of the singular to -ēs.
<br/>
As before, your teacher will describe one of the two pictures. Echo and write the accusative form on the right or left hand side of your answer pad according to the position of the picture described.
Remember, the singular ends in -em, the plural in -ēs.
Therefore the plural of <word lang="la">canem</word> is <response ans="canēs"/>.
</lessonFrame>
<lessonFrame id="2">
<sound src=""/>
<br/>
<picture src="boy-feeds-dog-and-dogs"/>
<br/>
<response ans="Pāscit juvenis canēs"/>.
<response ans="Pāscit juvenis canēs" text="[Did you remember to say your answer aloud as well as write?]">.
</response>
<br/>
</lessonFrame>
<lessonFrame id="3">
<sound src=""/>
<br/>
<picture src="woman-bathes-baby-and-babies"/>
<br/>
<response ans="Lavat anus īnfantem"/>.
<response ans="Lavat anus īnfantem"/>.
</lessonFrame>
Pretty cool huh?! XMLLINT = FTW !
Follow me as I learn to build my website bit by bit! IronTreeDev.com
no better way to show how xmllint works. great explanation!
ReplyDelete