Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/XML-DOM-serialization/Julia/xml-dom-serialization.julia
Normal file
17
Task/XML-DOM-serialization/Julia/xml-dom-serialization.julia
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using LightXML
|
||||
|
||||
# Modified from the documentation for LightXML.jl. The underlying library requires an encoding string be printed.
|
||||
|
||||
# create an empty XML document
|
||||
xdoc = XMLDocument()
|
||||
|
||||
# create & attach a root node
|
||||
xroot = create_root(xdoc, "root")
|
||||
|
||||
# create the first child
|
||||
xs1 = new_child(xroot, "element")
|
||||
|
||||
# add the inner content
|
||||
add_text(xs1, "some text here")
|
||||
|
||||
println(xdoc)
|
||||
Loading…
Add table
Add a link
Reference in a new issue