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

toLibxmlNode(XMLnode) -- convert a hashtable of type XMLnode to an object of type LibxmlNode

Synopsis

Description

i1 : new XMLnode from {
          tag => "foo",
          children => {
               new XMLnode from {
                    tag => "bar",
                    children => { " chicken coop " } },
               " hi there ",
               new XMLnode from { tag => "bar" } } }

o1 = <foo
       <bar " chicken coop "
       " hi there "
       <bar

o1 : XMLnode
i2 : toLibxmlNode oo

o2 = <foo><bar> chicken coop </bar> hi there <bar/></foo>

o2 : LibxmlNode (xmlTypeDescription)

Ways to use this method: