Macaulay2 » Documentation
Packages » XML :: xmlFirstChild
next | previous | forward | backward | up | index | toc

xmlFirstChild -- get the first child of an XML node or attribute

Synopsis

Description

i1 : n = xmlParse ///<bar a="123"><foo/></bar>///

o1 = <bar a="123">
           <foo/>
         </bar>

o1 : LibxmlNode (xmlTypeDescription)
i2 : xmlFirstChild n

o2 = <foo/>

o2 : LibxmlNode (xmlTypeDescription)
i3 : xmlFirstAttribute n

o3 = a = "123"

o3 : LibxmlAttribute
i4 : xmlFirstChild oo

o4 = "123"

o4 : LibxmlNode (xmlTypeDescription)

See also

Ways to use xmlFirstChild:

For the programmer

The object xmlFirstChild is a compiled function.