如何使用 julia 中的 LightXML 在 XML 文档中插入文档类型元素?按照 https://github.com/JuliaLang/LightXML.jl 中的示例,我想创建:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE doc>
<States>
</States>
没有文档类型,可以很容易地创建文档
xdoc = XMLDocument()
xroot = create_root(xdoc, "States")
但是,我找不到插入文档类型的方法。
最佳答案
LightXML 不可能。
The word "doctype" does not appear in the entire codebase ,这意味着您运气不佳。
关于xml - LightXML.jl : Insert doctype,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28307079/