Create document type from HTML

I have an HTML file. I am trying to create a document type out of it. I used

pub.xml:xmlStringToXMLNode (with isXML set to false)
pub.xml:xmlNodeToDocument

to parse the HTML and I got the document structure. But I couldn’t copy the document struture from the results pane to a document type.

I also tried to Create a new doc type with input type “XML”, unfortunately the
and


etc. make the XML invalid.

Please advise.

Thanks a lot!

My mistake: I was trying to copy/paste it to a folder. I should have created a blank doc type and paste it there.

Cheers!