Macaulay2 » Documentation
Packages » XML :: xmlNewRoot(String)
next | previous | forward | backward | up | index | toc

xmlNewRoot(String) -- create the root node of an XML document

Synopsis

Description

i1 : xmlNewRoot "foo"

o1 = <foo/>

o1 : LibxmlNode (xmlTypeDescription)
i2 : xmlDocDump oo

o2 = <?xml version="1.0" encoding="UTF-8"?>
     <foo/>

See also

Ways to use this method: