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

xmlTypeDescription(LibxmlNode) -- the type description for an XML node

Synopsis

Description

i1 : xmlParse "<foo>the cat<bar/><!-- a comment--></foo>"

o1 = <foo>the cat<bar/><!-- a comment--></foo>

o1 : LibxmlNode (xmlTypeDescription)
i2 : getChildren oo

o2 = {"the cat"        }
     {<bar/>           }
     {<!-- a comment-->}

o2 : VerticalList
i3 : xmlTypeDescription \ oo

o3 = {text node   }
     {element node}
     {comment node}

o3 : VerticalList

Ways to use this method: