Use htmlparser2 for xml documents
Throw error if xml is given with parse5 as parser