Make HTML node a valid XML type