KoXMLReader dump problem

Gopalakrishna Bhat gopalakbhat at gmail.com
Sat Apr 13 16:54:48 BST 2013


Following up now the branch is up for merging. Is this a bug that needs to
be fixed.


On Sat, Mar 2, 2013 at 10:39 PM, Gopalakrishna Bhat
<gopalakbhat at gmail.com>wrote:

> Hi,
>
> I have a scenario where I have to get the original xml from KoXmlReader.
>
> The original xml is like this:
>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>   <semantics>
>     <mrow>
>       <mrow>
>         <mo stretchy="false">∑</mo>
>         <mrow>
>           <mo stretchy="false">∫</mo>
>           <mrow>
>             <mo stretchy="false">∬</mo>
>             <mrow>
>               <mo stretchy="false">∭</mo>
>               <mover accent="true">
>                 <mo stretchy="false">∂</mo>
>                 <mo stretchy="false">̀</mo>
>               </mover>
>             </mrow>
>           </mrow>
>         </mrow>
>       </mrow>
>       <mo stretchy="false">∞</mo>
>       <mrow>
>         <mi>a</mi>
>         <mo stretchy="false">−</mo>
>         <mi>b</mi>
>       </mrow>
>     </mrow>
>   </semantics>
> </math>
>
> I have tried
>    QDomDocument domDoc;
>     bodyElement.asQDomNode(domDoc);
>     qDebug()<<"value "<<domDoc.toString();
>
> But it generates invalid xml as below:
>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>  <semantics xmlns="http://www.w3.org/1998/Math/MathML">
>   <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>    <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>     <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">∑</mo>
>     <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>      <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">∫</mo>
>      <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>       <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">∬</mo>
>       <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>        <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">∭</mo>
>        <mover xmlns="http://www.w3.org/1998/Math/MathML" :accent="true">
>         <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">∂</mo>
>         <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">̀</mo>
>        </mover>
>       </mrow>
>      </mrow>
>     </mrow>
>    </mrow>
>    <mo xmlns="http://www.w3.org/1998/Math/MathML" :stretchy="false">∞</mo>
>    <mrow xmlns="http://www.w3.org/1998/Math/MathML">
>     <mi xmlns="http://www.w3.org/1998/Math/MathML">a</mi>
>     <mo xmlns="http://www.w3.org/1998/Math/MathML"
> :stretchy="false">−</mo>
>     <mi xmlns="http://www.w3.org/1998/Math/MathML">b</mi>
>    </mrow>
>   </mrow>
>   <annotation xmlns="http://www.w3.org/1998/Math/MathML"
> :encoding="StarMath 5.0">sum int iint iiint grave partial infinity a -
> b      </annotation>
>  </semantics>
> </math>
>
>
>
> Is there any other way of getting the xml dump?
>
> With regards,
> Gopalakrishna
>
> --
> My blog http://gkbhat.blogspot.com
>



-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130413/b5737f30/attachment.htm>


More information about the calligra-devel mailing list