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

xmlGetName -- get the name of an XML node or attribute

Synopsis

Description

i1 : n = xmlParse ///<bar id="foo" name="too"></bar>///

o1 = <bar id="foo" name="too"/>

o1 : LibxmlNode (xmlTypeDescription)
i2 : xmlGetName n

o2 = bar
i3 : xmlFirstAttribute n

o3 = id = "foo"

o3 : LibxmlAttribute
i4 : xmlGetName oo

o4 = id

Ways to use xmlGetName :