Use common parser for both HTML and XML