Qt Labs Forum » Patternist

XPath?

(1 post)
  • Started 7 months ago by scorp1us

  1. scorp1us
    scorp1us
    Member

    While we see XQuery mentioned a lot, what support is there for doing:

    
    QDomDocument doc(some_xml);
    QDomNodeList dnl=doc.query("/some/XPath/Query[@attribute1='ff' and @attribute2=7]");
    QList<QDomNode> nodeList=DNLToQList(dnl); // convert to a QList so we can iterate over it with foreach
    foreach (QDomNode n, nodeList)
    {
        //do something
    }
    
    Posted: 7 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.