RosettaCodeData/Task/XML-DOM-serialization/Fantom/xml-dom-serialization.fantom

18 lines
247 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
using xml
class XmlDom
{
public static Void main ()
{
doc := XDoc()
root := XElem("root")
doc.add (root)
child := XElem("element")
child.add(XText("Some text here"))
root.add (child)
doc.write(Env.cur.out)
}
}