Results 1 to 5 of 5

Thread: Roadmap for XQuery Persistence (aka XQuery Update Facility)

  1. #1
    Join Date
    Jul 2010
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Roadmap for XQuery Persistence (aka XQuery Update Facility)

    I've done quite a lot of looking and reading around the QDom and QXmlPatterns functionality. I'm after the ability to run XQuery/XPath on XML data and persist changes.

    Having started with QDomDocument and it's persistance functionality (appendChild, removeChild(), set and save() etc) I saw reference that QXmlPatterns is now prefered to QDomDocument. However QXmlPatterns has no 'obvious' persistence mechanisms. Unless sub-classing QSimpleXmlNodeModel or QAbstractXmlNodeModel is how this is done.

    I'm actually now wondering if XQuery Update Facility has been, or is still planned to be, implemented within Qt.

    I see it was being considered a couple of years ago http://lists.trolltech.com/qt-intere...ad00653-0.html and an expired task-tracker for "Add XQuery Update Facility to Qt's XQuery Support" but can't see any reference in Qt 4.6 or 4.7.

    Any view or am I missing something? - this would be a great addition.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Roadmap for XQuery Persistence (aka XQuery Update Facility)

    Quote Originally Posted by Dazed View Post
    QXmlPatterns is now prefered to QDomDocument.
    I wouldn't say that was true. Qt's xml patterns is not a replacement for QDomDocument. Both have their advantages and disadvantages.

    However QXmlPatterns has no 'obvious' persistence mechanisms. Unless sub-classing QSimpleXmlNodeModel or QAbstractXmlNodeModel is how this is done.
    Qt's XQuery implementation is strictly read-only. So far at least and I wouldn't bet it would change in any definite future unless some Qt user implements it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2010
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Roadmap for XQuery Persistence (aka XQuery Update Facility)

    Thanks, I agree on the pros and cons point and have been using both. However, what I am really after the benefits of a join between them both (as I see others are from a number of related threads) and particularly the ability to XPath within a multi-document set and persist changes.

    A key quote is from the developer of QXmlPatterns (having seen the @author tags in the code) admittedly made in 2008 is:

    http://lists.trolltech.com/qt-intere...ad00653-0.html

    The reason for that there is no QtXmlPatterns<->QDom glue is fairly
    deliberate. The problem is that QDom is very old and has issues which are
    hard to live with and which becomes more visible by integrating with
    QtXmlPatterns. So our idea is to remove the need for such glue, by providing
    new functionality which is better. XQuery Update, for instance.
    Which sounded fairly authoritative to me, although obviously not a formal commitment. I appreciate that adding XQuery Update would be a non-trivial piece of work.

    If anyone is working along these lines, either inside Qt labs or elsewhere I for one would be keen to know.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Roadmap for XQuery Persistence (aka XQuery Update Facility)

    It doesn't say anywhere here that QDomDocument is bad/deprecated/obsolete/worse-than-QtXmlPatterns. It's just different.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jul 2010
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Roadmap for XQuery Persistence (aka XQuery Update Facility)

    Agreed - unfortunately, on it's own, it doesn't meet my requirement.

    What it does imply though is that there was intent within Qt development to add this capability (if not the actual Update feature) - just trying to get a current view on the status of that.

Similar Threads

  1. QxOrm : Persistence (ORM), Serialization, Reflection
    By QxOrm in forum Qt-based Software
    Replies: 19
    Last Post: 27th January 2014, 04:36
  2. Qt - Automatic bug reporting facility
    By h123 in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2009, 08:33
  3. XQuery indexing
    By dv_ in forum Qt Programming
    Replies: 1
    Last Post: 7th June 2009, 09:20
  4. Qt's and XQuery's Data Model 4.4beta question
    By patrik08 in forum Qt Programming
    Replies: 0
    Last Post: 7th March 2008, 09:43

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.