API to convert document type to XML?
Hi,
Now we cannot set document type
after parse, but sometimes I want to convert HTML contents to XHTML to build EPUB files.
How do you think about to add such API like XML::Document#type=
or XML::Document#xml!
and #html!
or so.
My current workaround is instance_variable_set
: https://gitlab.com/KitaitiMakoto/rhg/blob/50f99cd35b077b3a85ea4583e589dde16fca1363/Rakefile#L213