Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LightXML.jl: Insert doctype

Tags:

xml

doctype

julia

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.

like image 975
Julian Avatar asked Jul 28 '26 23:07

Julian


1 Answers

Not possible with LightXML.

The word "doctype" does not appear in the entire codebase, which means you are out of luck with this package.

like image 158
Tomalak Avatar answered Aug 01 '26 01:08

Tomalak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!