[Lazarus] laz2_xmlread and & text
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Fri Nov 21 10:47:53 CET 2014
Hello,
Consider this XML:
<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 3.0//EN"
"http://www.w3.org/TR/MathML3/dtd/mathml3.dtd">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>π</mi>
<mo>⁢</mo>
<msup>
<mi>r</mi>
<mn>2</mn>
</msup>
</math>
I cannot get the value "π" because TXMLReader.ParseRef as far as I
can tell will substitute it with an empty string =(
How can I get "π" or at least the Unicode char for Pi? Maybe I
should add a field to allow me to define my own ParseRef routine? This
way I could in my own code fix this. I guess I could change ParseRef
to substitute π with pi, but this could lead to an endless amount
of combinations which could be valid.... and all of them need to be
added to ParseRef.
thanks,
--
Felipe Monteiro de Carvalho
More information about the Lazarus
mailing list