How can I insert a doctype element in a XML document, using LightXML in julia? Following the example from https://github.com/JuliaLang/LightXML.jl, I would like to create:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE doc>
<States>
</States>
Without the doctype, the document can be easily created with
xdoc = XMLDocument()
xroot = create_root(xdoc, "States")
However, I couldn't find a way to insert the doctype.
Not possible with LightXML.
The word "doctype" does not appear in the entire codebase, which means you are out of luck with this package.