Example 1: 
 
   > printxml(x + 2 + exp(sin(x)));
 
   
 
   <?xml version="1.0" encoding="UTF-8"?>
 
   <!-- generated by sollya: http://sollya.gforge.inria.fr/ -->
 
   <!-- syntax: printxml(...);   example: printxml(x^2-2*x+5); -->
 
   <?xml-stylesheet type="text/xsl" href="http://sollya.gforge.inria.fr/mathmlc2p-web.xsl"?>
 
   <?xml-stylesheet type="text/xsl" href="mathmlc2p-web.xsl"?>
 
   <!-- This stylesheet allows direct web browsing of MathML-c XML files (http:// or file://) -->
 
   
 
   <math xmlns="http://www.w3.org/1998/Math/MathML">
 
   <semantics>
 
   <annotation-xml encoding="MathML-Content">
 
   <lambda>
 
   <bvar><ci> x </ci></bvar>
 
   <apply>
 
   <apply>
 
   <plus/>
 
   <apply>
 
   <plus/>
 
   <ci> x </ci>
 
   <cn type="integer" base="10"> 2 </cn>
 
   </apply>
 
   <apply>
 
   <exp/>
 
   <apply>
 
   <sin/>
 
   <ci> x </ci>
 
   </apply>
 
   </apply>
 
   </apply>
 
   </apply>
 
   </lambda>
 
   </annotation-xml>
 
   <annotation encoding="sollya/text">(x + 1b1) + exp(sin(x))</annotation>
 
   </semantics>
 
   </math>
 
   
 
 
 
Example 2: 
 
   > printxml(x + 2 + exp(sin(x))) > "foo.xml";
 
 
 
Example 3: 
 
   > printxml(x + 2 + exp(sin(x))) >> "foo.xml";