i1 : n = xmlParse ///<bar id="foo" name="too"></bar>/// o1 = <bar id="foo" name="too"/> o1 : LibxmlNode (xmlTypeDescription) |
i2 : xmlAddText(n,"hi there") o2 = "hi there" o2 : LibxmlNode (xmlTypeDescription) |
i3 : xmlIsText oo o3 = true |
i4 : n o4 = <bar id="foo" name="too">hi there</bar> o4 : LibxmlNode (xmlTypeDescription) |
The list of children should not contain two adjacent text nodes.