O'Reilly logo

XQuery from the Experts: A Guide to the W3C XML Query Language by Philip Wadler, Jim Tivy, Jérôme Siméon, Michael Rys, Jonathan Robie, Michael Kay, Mary Fernández, Denise Draper, Don Chamberlin, Howard Katz - Editor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Shredding

The previous discussion concentrated primarily on the composition from relational data to XML data. In the case of shredded XML, we must first solve the opposite problem: How do we take XML data and represent it in a relational database? Stated another way, How do we encode an XML document as a set of relational entities, relations, and attributes?

The issues involved for shredding are very similar to the issues for update for any composed mapping technique, which is not surprising, given that shredding an XML document is essentially an update operation that adds a new instance of the document to the store. Thus it is also not surprising that the same basic approaches that work for composed mapping techniques work for shredding as well—so ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required