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

xmlGetNext -- get the next XML node or attribute

Synopsis

Description

i1 : xmlParse ///<bar><a/><b/></bar>///

o1 = <bar>
           <a/>
           <b/>
         </bar>

o1 : LibxmlNode (xmlTypeDescription)
i2 : xmlFirstChild oo

o2 = <a/>

o2 : LibxmlNode (xmlTypeDescription)
i3 : xmlGetNext oo

o3 = <b/>

o3 : LibxmlNode (xmlTypeDescription)
i4 : xmlGetNext oo
i5 : xmlParse ///<bar id="foo" name="too"/>///

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

o5 : LibxmlNode (xmlTypeDescription)
i6 : xmlFirstAttribute oo

o6 = id = "foo"

o6 : LibxmlAttribute
i7 : xmlGetNext oo

o7 = name = "too"

o7 : LibxmlAttribute
i8 : xmlGetNext oo

Ways to use xmlGetNext :

For the programmer

The object xmlGetNext is a compiled function.