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
Post a Comment