Home > SOA Tips > The Web Services Advisor > XQuery learns to write using XUF
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

THE WEB SERVICES ADVISOR

XQuery learns to write using XUF


George Lawton
03.24.2009
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


XQuery has been getting a lot of traction for working with XML databases, but its weakest link perhaps has been limitations for writing to the databases it works with. Applications have sometimes had to create multiple copies of XML databases or write back an entire table for a simple data change. However, this is changing with XQuery Update Facility (XUF), a new standard working its way through the last stages with the XML Query Working Group of the W3C. XUF adds the ability to change XML documents that are accessed via XQuery.

"In general XUF introduced a nice optimization to simplify a couple of interesting use cases," said Carlos Innocenti, senior XML program manager at DataDirect. One is the ability to transform and change in place a very large XML document. A company or agency might have a large data dump on a disk, with no access to the mainframe that generated the files. They may need to update this data in place without duplicating the data.

In another case, an organization might need to transform a document to conform to a new data structure standard. XUF allows the coder to focus on the differences between the format specifications rather than completely replicating the data and then adding new data. Carlos Innocenti, Senior XML program manager at DataDirect said this makes the coding more effective and provides a productivity boost.

XQuery takes an XPath Data Model (XDM) instance and returns an XDM instance as a result. An XQuery 1.0 statement never modifies an existing node, although it is possible to create new nodes with constructor expressions.

XUF adds updating expressions for inserting, deleting, replacing or renaming a node. These expressions can be nestled recursively to other XQuery expressions. The XUF spec defines the places in which each type of expression can be used.

New extensions to the XQuery processing model include a pending updates list, a set of update operations for updating primitives ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
The Web Services Advisor
What to expect with the new JavaScript standardization (ECMAScript 5)
Restlet framework wrestles RESTful Web applications
3 tips for choosing whether to use EGL
Use SoaML to facilitate Model Driven Architecture
Enterprise mashup patterns act as API enablers
Descriptive Languages for RESTful Services
Notable Python language update on view
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
Whatever happened to ''X''?
The technology of Web Service Security

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


and routines.

.

Implementations of XUF include:

CWI Monet DB: http://monetdb.cwi.nl/

DataDirect Data XQuery: http://www.datadirect.com/products/xquery/index.ssp

ETH Zurich's MXQuery: http://www.mxquery.org

eXist: http://www.exist-db.org/

Oracle Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml/index.html

XQilla: http://xqilla.sourceforge.net

XMLmind Qizx: http://www.xmlmind.com/qizx/qizx.html

Links:

XUF Specification: http://www.w3.org/TR/xquery-update-10/

XQuery Update for the impatient: http://www.xmlmind.com/_tutorials/XQueryUpdate/index.html

Xavier Franc presents a quick yet comprehensive practical introduction to the XQuery Update extension, while highlighting some of its peculiarities

Testing XQuery Update Facility 1.0: http://www.xmlplease.com/xquery-update

Jesper Tverskov gives a technical overview that explains the steps to using XUF. It explains the basics of updates and describes some of the cautions to be aware of.

XQuery Update Use Cases for DB2 pureXML in the health care, business, financial and IT industries:

http://www.ibm.com/developerworks/data/library/techarticle/dm-0810malaika/

Tutorial for learning about the various ways to modify XML, including XML stored in memory or a DB2 XML database.


Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts