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

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

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:

  • xmlGetName(LibxmlAttribute)
  • xmlGetName(LibxmlNode)

For the programmer

The object xmlGetName is a compiled function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/XML.m2:662:0.