to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

XML shredding

With relational processing, the XML document must be stored in a relation.

Mapping from XML to relations is called shredding, which for the recipes could look like:

collection
iddescription
147Some recipes used in the XML tutorial.

recipe
idparenttitle
231147Beef Parmesan with Garlic Angel Hair Pasta
237147Ricotta Pie
242147Linguine Pescadoro
247147Zuppa Inglese
253147Cailles en Sarcophages

ingredient
idparentname amount unit
411231beef cube steak 1.5 pound
462237ricotta cheese 3 pound
535247egg yolks 4  
612247pastry    
789612flour 3 cup
......... ... ...

preparation
idparent
376 231
... ...

step
idparenttext
423376Preheat oven to 350 degrees F (175 degrees C).
.........

comment
idparenttext
.........

nutrition
id parent calories fat carbohydrates protein alcohol
... ... ... ... ... ... ...

In this construction, we have:

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next