next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
XML :: xmlFirstChild

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 :