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

getAttributes(LibxmlNode) -- get the list of attributes of an XML node

Synopsis

Description

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

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

o1 : LibxmlNode (xmlTypeDescription)
i2 : a = getAttributes oo

o2 = {id = "foo"  }
     {name = "too"}

o2 : VerticalList
i3 : class \ a

o3 = {LibxmlAttribute}
     {LibxmlAttribute}

o3 : VerticalList

Ways to use this method: