September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 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