Macaulay2 » Documentation
Packages » XML :: xmlFirstAttribute(LibxmlNode)
next | previous | forward | backward | up | index | toc

xmlFirstAttribute(LibxmlNode) -- get the first attribute of an XML node

Description

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

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

o1 : LibxmlNode (xmlTypeDescription)
i2 : xmlFirstAttribute oo

o2 = id = "foo"

o2 : LibxmlAttribute

See also

Ways to use this method:


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