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

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:

For the programmer

The object xmlGetName is a compiled function.