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

xmlIsText(LibxmlNode) -- whether an XML node is text

Synopsis

Description

i1 : n = xmlParse ///<bar>hi there</bar>///

o1 = <bar>hi there</bar>

o1 : LibxmlNode (xmlTypeDescription)
i2 : c = xmlFirstChild n

o2 = "hi there"

o2 : LibxmlNode (xmlTypeDescription)
i3 : xmlIsText c

o3 = true

See also

Ways to use this method: