Example. Forester 4.0 › Enhanced XML support › Emitting XML and resolving namespaces › A worked example [00RL]

The following code causes MathML to be emitted (in the correct namespace), combining Feature [00RK] and Feature [00RM]:

\xmlns:mml{http://www.w3.org/1998/Math/MathML}
\<mml:math>[display]{block}{
 \<mml:mrow>{
  \<mml:msup>{
   \<mml:mi>{x}
   \<mml:mn>{2}
  }
  \<mml:mo>{+}
  \<mml:mi>{x}
 }
}

The above displays as follows:

x 2 + x