I dont know, where is the problem in KoXmlReader i have just tested if you like this is my test :<br><br>if (!odfStore->open("meta.xml")) {<br>        kDebug(30517) << "Cannot open meta.xml";<br>
        delete odfStore;<br>        return KoFilter::FileNotFound;<br>    }<br><br>    KoXmlDocument doc;<br>    QString errorMsg;<br>    int errorLine, errorColumn;<br>    if (!doc.setContent(odfStore->device(), true, &errorMsg, &errorLine, &errorColumn)) {<br>
        kDebug() << "Error occured while parsing meta.xml "<br>                 << errorMsg << " in Line: " << errorLine<br>                 << " Column: " << errorColumn;<br>
        return KoFilter::ParsingError;<br>    }<br><br>    KoXmlNode childNode = doc.documentElement();<br>    <br>    childNode = childNode.firstChild();<br>    if (childNode.isText())<br>        kDebug() <<" Node is Text";<br>
    if (childNode.isElement())<br>        kDebug() << " Node is Element";<br><br><br>/////////////<br>The result is "Node is Text". but i think the result should be Tag  "meta" chiled of node "document-meta" .<br>
<br><div class="gmail_quote">On Thu, Aug 2, 2012 at 5:45 PM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hm, I doubt there is a bug there, really. It's really old code that's been really well tested. I'm not sure I understand what you describe, though. Could you show the code you're talking about?<div class="HOEnZb">
<div class="h5"><br>
<br>
On Thu, 2 Aug 2012, mojtaba shahi Senobari wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all<br>
<br>
I was working with KoXmlReader and  at a node ( just include attributes ) i<br>
try firstChild().<br>
<br>
I except an element, that should be a child of my node, but no result.<br>
<br>
I checked and  found that the result of firstChild is a KoXmlText.<br>
<br>
I think in this method (firstChild) programmer has not ignored  attributes<br>
of node.<br>
<br>
and this is for method KoXmlReader::nextSibling().<br>
<br>
Am i right and it is a bug or no, i am doing some thing wrong ?<br>
<br>
moji<br>
<br>
</blockquote>
</div></div><br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br>