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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -