Several issues with readxml
The files provided in attachment differ only very slightly and by details that should have no visible effect. However, when read in sollya with
> readxml("thefile.xml");
they leak memory or not, and they manage or not to produce a valid expression, without any identifiable pattern allowing for an explanation.
A.xml : works and does not leak (generated from printxml(x+2+exp(sin(x))) )
B.xml : works but leaks (obtained from A.xml by removing a comment)
C.xml : works and does not leak (obtained from A.xml by removing an optional annotation)
D.xml : works but leaks (file readxmlexample.xml from the doc)
E.xml : does not work and leaks (obtained from D.xml by removing the same optional annotation as in C.xml)