Convert HTML to JSONML or vice versa