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