Ignore error "Specification mandates"
Lightjohn opened this issue · comments
Jonathan commented
Hi,
Discovering Julia and trying to get and parse Julia doc for fun:
using HTTP, EzXML
url = "https://docs.julialang.org/en/v1/NEWS/"
r = HTTP.get(url, status_exception=false)
if r.status != 200
println("Oups failed to get")
else
println("Request ", r.status)
doc = parsexml(String(s))
data = findall("//a[@class=\"docs-heading-anchor\"]", doc)
println(data)
end
I get this error for this site but also others:
ERROR: LoadError: XMLError: Specification mandates value for attribute href from XML parser (code: 41, line: 46)
It seems to be Errors in the code, would it be possible to ignore this error and still parse the doc.
I did not find any info on how to manage these errors with EzXml
Jonathan commented
Sorry error was parsexml
should have used parsehtml