xmlstarlet finds my html invalid -


i'm using xmlstarlet query source code of following webpage, test: http://motherfuckingwebsite.com/

this command i'm using:

xmlstarlet sel -t -v "//h2" mfw.html 

it returns bunch of errors this:

mfw.html:81.8: premature end of data in tag body line 12 </html> 

it appears xmlstarlet doesn't validate document. when run xmlstarlet val mfw.html, output:

mfw.html - invalid

i observed similar behavior bunch of other html documents. understanding of xml/html validity @ fault here or problem somewhere else?


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -