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

getChildren -- get the list of children of an XML node

Synopsis

Description

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

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

o1 : LibxmlNode (xmlTypeDescription)
i2 : c = getChildren oo

o2 = {"aabc"                             }
     {<bar id="foo" name="too">asdf</bar>}

o2 : VerticalList
i3 : class \ c

o3 = {LibxmlNode}
     {LibxmlNode}

o3 : VerticalList
i4 : xmlIsText \ c

o4 = {true }
     {false}

o4 : VerticalList
i5 : xmlIsElement \ c

o5 = {false}
     {true }

o5 : VerticalList

Ways to use getChildren:

For the programmer

The object getChildren is a method function.