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
_______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel