/ recipeBox.xml
recipeBox.xml
  1  <?xml version="1.0" encoding="UTF-8"?><!-- This is a sample XML file for a recipe box application. -->
  2  <?xml-stylesheet type="text/xsl" href="sc02.xsl"?>
  3  
  4  <recipeBox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="recipeBoxSchema.xsd">
  5      <ingredients>
  6          <!-- Liste unique d'ingrédients -->
  7          <ingredient id="i101">
  8              <name>Chicken breast</name>
  9              <category>meat</category>
 10              <allergens>none</allergens>
 11          </ingredient>
 12          <ingredient id="i102">
 13              <name>Yogurt</name>
 14              <category>dairy</category>
 15              <allergens>lactose</allergens>
 16          </ingredient>
 17          <ingredient id="i103">
 18              <name>Onion</name>
 19              <category>vegetable</category>
 20              <allergens>none</allergens>
 21          </ingredient>
 22          <ingredient id="i104">
 23              <name>Tomato</name>
 24              <category>vegetable</category>
 25              <allergens>none</allergens>
 26          </ingredient>
 27          <ingredient id="i105">
 28              <name>Garam masala</name>
 29              <category>spice</category>
 30              <allergens>none</allergens>
 31          </ingredient>
 32          <ingredient id="i106">
 33              <name>Ground turmeric</name>
 34              <category>spice</category>
 35              <allergens>none</allergens>
 36          </ingredient>
 37          <ingredient id="i107">
 38              <name>Ground beef</name>
 39              <category>meat</category>
 40              <allergens>none</allergens>
 41          </ingredient>
 42          <ingredient id="i108">
 43              <name>Onion</name>
 44              <category>vegetable</category>
 45              <allergens>none</allergens>
 46          </ingredient>
 47          <ingredient id="i109">
 48              <name>Garlic</name>
 49              <category>vegetable</category>
 50              <allergens>none</allergens>
 51          </ingredient>
 52          <ingredient id="i110">
 53              <name>Canned tomatoes</name>
 54              <category>vegetable</category>
 55              <allergens>none</allergens>
 56          </ingredient>
 57          <ingredient id="i111">
 58              <name>Tomato paste</name>
 59              <category>vegetable</category>
 60              <allergens>none</allergens>
 61          </ingredient>
 62          <ingredient id="i112">
 63              <name>Parmesan cheese</name>
 64              <category>dairy</category>
 65              <allergens>lactose</allergens>
 66          </ingredient>
 67          <ingredient id="i113">
 68              <name>Fresh basil</name>
 69              <category>herb</category>
 70              <allergens>none</allergens>
 71          </ingredient>
 72          <ingredient id="i114">
 73              <name>Fettuccine pasta</name>
 74              <category>grain</category>
 75              <allergens>gluten</allergens>
 76          </ingredient>
 77          <ingredient id="i115">
 78              <name>Butter</name>
 79              <category>dairy</category>
 80              <allergens>lactose</allergens>
 81          </ingredient>
 82          <ingredient id="i116">
 83              <name>Heavy cream</name>
 84              <category>dairy</category>
 85              <allergens>lactose</allergens>
 86          </ingredient>
 87          <ingredient id="i117">
 88              <name>Parsley</name>
 89              <category>herb</category>
 90              <allergens>none</allergens>
 91          </ingredient>
 92          <ingredient id="i118">
 93              <name>Beef sirloin</name>
 94              <category>meat</category>
 95              <allergens>none</allergens>
 96          </ingredient>
 97          <ingredient id="i119">
 98              <name>Broccoli</name>
 99              <category>vegetable</category>
100              <allergens>none</allergens>
101          </ingredient>
102          <ingredient id="i120">
103              <name>Carrot</name>
104              <category>vegetable</category>
105              <allergens>none</allergens>
106          </ingredient>
107          <ingredient id="i121">
108              <name>Red bell pepper</name>
109              <category>vegetable</category>
110              <allergens>none</allergens>
111          </ingredient>
112          <ingredient id="i122">
113              <name>Soy sauce</name>
114              <category>condiment</category>
115              <allergens>soy</allergens>
116          </ingredient>
117          <ingredient id="i123">
118              <name>Hoisin sauce</name>
119              <category>condiment</category>
120              <allergens>soy</allergens>
121          </ingredient>
122          <ingredient id="i124">
123              <name>White rice</name>
124              <category>grain</category>
125              <allergens>gluten</allergens>
126          </ingredient>
127          <ingredient id="i125">
128              <name>Green onions</name>
129              <category>vegetable</category>
130              <allergens>none</allergens>
131          </ingredient>
132          <ingredient id="i126">
133              <name>Pizza dough</name>
134              <category>grain</category>
135              <allergens>gluten</allergens>
136          </ingredient>
137          <ingredient id="i127">
138              <name>Tomato sauce</name>
139              <category>vegetable</category>
140              <allergens>none</allergens>
141          </ingredient>
142          <ingredient id="i128">
143              <name>Mozzarella cheese</name>
144              <category>dairy</category>
145              <allergens>lactose</allergens>
146          </ingredient>
147          <!-- Additional ingredients -->
148      </ingredients>
149      <recipes>
150          <recipe id="r101">
151              <title>Poulet Tikka Masala</title>
152              <cuisine>Indian</cuisine>
153              <difficulty>medium</difficulty>
154              <healthRating>3</healthRating>
155              <price>20.99</price>
156              <preparationTime>20 minutes</preparationTime>
157              <cookingTime>40 minutes</cookingTime>
158              <servings>4</servings>
159              <ingredientRefs>
160                  <ref id="i101" quantity="500" unit="grams"/>
161                  <ref id="i102" quantity="100" unit="grams"/>
162                  <ref id="i103" quantity="1" unit="piece"/>
163                  <ref id="i104" quantity="2" unit="pieces"/>
164                  <ref id="i105" quantity="10" unit="grams"/>
165                  <ref id="i106" quantity="10" unit="grams"/>
166                  <ref id="i112" quantity="50" unit="grams"/>
167                  <ref id="i113" quantity="10" unit="grams"/>
168              </ingredientRefs>
169              <instructions>
170                  <step>Marinate the chicken in spices and yogurt.</step>
171                  <step>Cook onions, tomatoes, and marinated chicken in a pan.</step>
172                  <step>Simmer for 20 minutes.</step>
173                  <step>Garnish with fresh cilantro and serve hot.</step>
174                  <step>Serve with rice or naan bread.</step>
175              </instructions>
176              <nutritionFacts>
177                  <calories>450</calories>
178                  <carbs>35g</carbs>
179                  <protein>40g</protein>
180                  <fat>20g</fat>
181              </nutritionFacts>
182          </recipe>
183          <recipe id="r102">
184              <title>Spaghetti Bolognese</title>
185              <cuisine>Italian</cuisine>
186              <difficulty>easy</difficulty>
187              <healthRating>2</healthRating>
188              <price>18.99</price>
189              <preparationTime>15 minutes</preparationTime>
190              <cookingTime>45 minutes</cookingTime>
191              <servings>6</servings>
192              <ingredientRefs>
193                  <ref id="i107" quantity="500" unit="grams"/>
194                  <ref id="i108" quantity="1" unit="piece"/>
195                  <ref id="i109" quantity="2" unit="cloves"/>
196                  <ref id="i110" quantity="400" unit="grams"/>
197                  <ref id="i111" quantity="500" unit="grams"/>
198                  <ref id="i112" quantity="50" unit="grams"/>
199                  <ref id="i113" quantity="10" unit="grams"/>
200              </ingredientRefs>
201              <instructions>
202                  <step>Cook the spaghetti according to package instructions.</step>
203                  <step>In a separate pan, cook the ground beef, onion, and garlic until browned.</step>
204                  <step>Add the canned tomatoes and tomato paste to the pan and simmer for 20 minutes.</step>
205                  <step>Serve the bolognese sauce over the cooked spaghetti.</step>
206                  <step>Garnish with grated Parmesan cheese and fresh basil.</step>
207              </instructions>
208              <nutritionFacts>
209                  <calories>550</calories>
210                  <carbs>60g</carbs>
211                  <protein>30g</protein>
212                  <fat>20g</fat>
213              </nutritionFacts>
214          </recipe>
215          <recipe id="r103">
216              <title>Chicken Alfredo</title>
217              <cuisine>Italian</cuisine>
218              <difficulty>medium</difficulty>
219              <healthRating>2</healthRating>
220              <price>23.99</price>
221              <preparationTime>20 minutes</preparationTime>
222              <cookingTime>30 minutes</cookingTime>
223              <servings>4</servings>
224              <ingredientRefs>
225                  <ref id="i101" quantity="500" unit="grams"/>
226                  <ref id="i114" quantity="50" unit="grams"/>
227                  <ref id="i115" quantity="100" unit="milliliters"/>
228                  <ref id="i116" quantity="300" unit="grams"/>
229                  <ref id="i112" quantity="50" unit="grams"/>
230                  <ref id="i117" quantity="10" unit="grams"/>
231              </ingredientRefs>
232              <instructions>
233                  <step>Cook the fettuccine pasta according to package instructions.</step>
234                  <step>In a separate pan, cook the chicken breast until browned.</step>
235                  <step>Add the butter, garlic, and heavy cream to the pan and simmer for 5 minutes.</step>
236                  <step>Stir in the Parmesan cheese until melted and creamy.</step>
237                  <step>Serve the Alfredo sauce over the cooked fettuccine pasta.</step>
238                  <step>Garnish with chopped parsley.</step>
239              </instructions>
240              <nutritionFacts>
241                  <calories>700</calories>
242                  <carbs>50g</carbs>
243                  <protein>40g</protein>
244                  <fat>40g</fat>
245              </nutritionFacts>
246          </recipe>
247          <recipe id="r104">
248              <title>Beef Stir-Fry</title>
249              <cuisine>Asian</cuisine>
250              <difficulty>easy</difficulty>
251              <healthRating>3</healthRating>
252              <price>15.99</price>
253              <preparationTime>15 minutes</preparationTime>
254              <cookingTime>10 minutes</cookingTime>
255              <servings>4</servings>
256              <ingredientRefs>
257                  <ref id="i118" quantity="500" unit="grams"/>
258                  <ref id="i119" quantity="200" unit="grams"/>
259                  <ref id="i120" quantity="100" unit="grams"/>
260                  <ref id="i121" quantity="100" unit="grams"/>
261                  <ref id="i122" quantity="50" unit="milliliters"/>
262                  <ref id="i123" quantity="50" unit="milliliters"/>
263                  <ref id="i124" quantity="300" unit="grams"/>
264                  <ref id="i125" quantity="10" unit="grams"/>
265              </ingredientRefs>
266              <instructions>
267                  <step>Cook the rice according to package instructions.</step>
268                  <step>In a wok or large pan, stir-fry the beef until browned.</step>
269                  <step>Add the broccoli, carrot, and red bell pepper to the pan and stir-fry for 5 minutes.</step>
270                  <step>In a small bowl, mix together the soy sauce and hoisin sauce.</step>
271                  <step>Pour the sauce over the stir-fry and cook for an additional 2 minutes.</step>
272                  <step>Serve the beef stir-fry over the cooked rice.</step>
273                  <step>Garnish with sliced green onions.</step>
274              </instructions>
275              <nutritionFacts>
276                  <calories>450</calories>
277                  <carbs>40g</carbs>
278                  <protein>30g</protein>
279                  <fat>15g</fat>
280              </nutritionFacts>
281          </recipe>
282          <recipe id="r105">
283              <title>Margherita Pizza</title>
284              <cuisine>Italian</cuisine>
285              <difficulty>easy</difficulty>
286              <healthRating>2</healthRating>
287              <price>10.99</price>
288              <preparationTime>10 minutes</preparationTime>
289              <cookingTime>15 minutes</cookingTime>
290              <servings>2</servings>
291              <ingredientRefs>
292                  <ref id="i126" quantity="1" unit="piece"/>
293                  <ref id="i127" quantity="100" unit="grams"/>
294                  <ref id="i128" quantity="100" unit="grams"/>
295                  <ref id="i113" quantity="10" unit="grams"/>
296              </ingredientRefs>
297              <instructions>
298                  <step>Preheat the oven to 220°C (425°F).</step>
299                  <step>Roll out the pizza dough into a round shape.</step>
300                  <step>Spread the tomato sauce evenly over the dough.</step>
301                  <step>Sprinkle the mozzarella cheese on top of the sauce.</step>
302                  <step>Bake the pizza in the preheated oven for 12-15 minutes, or until the crust is golden and the cheese is melted and bubbly.</step>
303                  <step>Remove the pizza from the oven and garnish with fresh basil.</step>
304              </instructions>
305              <nutritionFacts>
306                  <calories>600</calories>
307                  <carbs>80g</carbs>
308                  <protein>20g</protein>
309                  <fat>20g</fat>
310              </nutritionFacts>
311          </recipe>
312          <!-- Additional recipes -->
313      </recipes>
314      <menus>
315          <menu id="m101" name="7days">
316              <meal type="dinner" day="Monday" recipeId="r101"/>
317              <meal type="lunch" day="Tuesday" recipeId="r102"/>
318              <meal type="dinner" day="Wednesday" recipeId="r103"/>
319              <meal type="lunch" day="Thursday" recipeId="r104"/>
320              <meal type="dinner" day="Friday" recipeId="r105"/>
321              <meal type="dinner" day="Saturday" recipeId="r102" />
322              <meal type="lunch" day="Sunday" recipeId="r103" />
323              <!-- Additional meals -->
324          </menu>
325          <menu id="m102" name="5days">
326              <meal type="dinner" day="Monday" recipeId="r102"/>
327              <meal type="lunch" day="Tuesday" recipeId="r103"/>
328              <meal type="dinner" day="Wednesday" recipeId="r104"/>
329              <meal type="lunch" day="Thursday" recipeId="r105"/>
330              <meal type="dinner" day="Friday" recipeId="r101"/>
331              <!-- Additional meals -->
332          </menu>
333          <menu id="m103" name="3days">
334              <meal type="dinner" day="Monday" recipeId="r103"/>
335              <meal type="lunch" day="Tuesday" recipeId="r104"/>
336              <meal type="dinner" day="Wednesday" recipeId="r105"/>
337              <!-- Additional meals -->
338          </menu>
339          <!-- Additional menus -->
340      </menus>
341      <orders>
342          <order id="o101" customerId="c101" deliveryPeopleId="d101" date="2024-04-01">
343              <menuId>m101</menuId>
344              <deliveryAddress>456 Example Avenue, Cityville</deliveryAddress>
345              <deliveryTime>19:00</deliveryTime>
346              <status>preparing</status>
347          </order>
348          <order id="o102" customerId="c101" deliveryPeopleId="d102" date="2024-04-01">
349              <menuId>m102</menuId>
350              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
351              <deliveryTime>12:30</deliveryTime>
352              <status>preparing</status>
353          </order>
354          <order id="o103" customerId="c102" deliveryPeopleId="d103" date="2024-04-01">
355              <menuId>m103</menuId>
356              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
357              <deliveryTime>19:00</deliveryTime>
358              <status>preparing</status>
359          </order>
360          <order id="o104" customerId="c103" deliveryPeopleId="d102" date="2024-04-01">
361              <menuId>m101</menuId>
362              <deliveryAddress>456 Example Avenue, Cityville</deliveryAddress>
363              <deliveryTime>12:30</deliveryTime>
364              <status>preparing</status>
365          </order>
366          <order id="o105" customerId="c101" deliveryPeopleId="d101" date="2024-04-02">
367              <menuId>m102</menuId>
368              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
369              <deliveryTime>19:00</deliveryTime>
370              <status>preparing</status>
371          </order>
372          <order id="o106" customerId="c102" deliveryPeopleId="d101" date="2024-04-02">
373              <menuId>m103</menuId>
374              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
375              <deliveryTime>12:30</deliveryTime>
376              <status>preparing</status>
377          </order>
378          <order id="o107" customerId="c103" deliveryPeopleId="d103" date="2024-04-03">
379              <menuId>m101</menuId>
380              <deliveryAddress>456 Example Avenue, Cityville</deliveryAddress>
381              <deliveryTime>19:00</deliveryTime>
382              <status>preparing</status>
383          </order>
384          <order id="o108" customerId="c101" deliveryPeopleId="d103" date="2024-04-03">
385              <menuId>m102</menuId>
386              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
387              <deliveryTime>12:30</deliveryTime>
388              <status>preparing</status>
389          </order>
390          <order id="o109" customerId="c102" deliveryPeopleId="d102" date="2024-04-03">
391              <menuId>m103</menuId>
392              <deliveryAddress>123 Example Street, Cityville</deliveryAddress>
393              <deliveryTime>19:00</deliveryTime>
394              <status>preparing</status>
395          </order>
396          <order id="o110" customerId="c103" deliveryPeopleId="d101" date="2024-04-03">
397              <menuId>m101</menuId>
398              <deliveryAddress>456 Example Avenue, Cityville</deliveryAddress>
399              <deliveryTime>12:30</deliveryTime>
400              <status>preparing</status>
401          </order>
402          <!-- Additional orders -->
403      </orders>
404      <customers>
405          <customer id="c101">
406              <name>Jane Doe</name>
407              <email>jane.doe@example.com</email>
408              <address>456 Example Avenue, Cityville</address>
409              <preference>
410                  <diet>vegetarian</diet>
411                  <allergy>none</allergy>
412              </preference>
413          </customer>
414          <customer id="c102">
415              <name>John Doe</name>
416              <email>john.doe@example.com</email>
417              <address>123 Example Street, Cityville</address>
418              <preference>
419                  <diet>none</diet>
420                  <allergy>none</allergy>
421              </preference>
422          </customer>
423          <customer id="c103">
424              <name>Alice Smith</name>
425              <email>alice.smith@example.com</email>
426              <address>789 Example Road, Townsville</address>
427              <preference>
428                  <diet>none</diet>
429                  <allergy>none</allergy>
430              </preference>
431          </customer>
432          <customer id="c104">
433              <name>Bob Johnson</name>
434              <email>bob.johnson@example.com</email>
435              <address>456 Example Avenue, Cityville</address>
436              <preference>
437                  <diet>none</diet>
438                  <allergy>none</allergy>
439              </preference>
440          </customer>
441          <customer id="c105">
442              <name>Sarah Williams</name>
443              <email>sarah.williams@example.com</email>
444              <address>789 Example Boulevard, Townsville</address>
445              <preference>
446                  <diet>none</diet>
447                  <allergy>none</allergy>
448              </preference>
449          </customer>
450          <!-- Additional customers -->
451      </customers>
452      <deliveryPeople>
453          <deliveryPerson id="d101">
454              <name>John Smith</name>
455              <email>johnsmith@johnsmith.com</email>
456              <phone>+1234567890</phone>
457          </deliveryPerson>
458          <deliveryPerson id="d102">
459              <name>Jane Smith</name>
460              <email>janesmith@janesmith.com</email>
461              <phone>+9876543210</phone>
462          </deliveryPerson>
463          <deliveryPerson id="d103">
464              <name>David Johnson</name>
465              <email>davidjohnson@davidjohnson.com</email>
466              <phone>+5555555555</phone>
467          </deliveryPerson>
468          <!-- Additional delivery people -->
469      </deliveryPeople>
470      <comments>
471          <comment id="com101" recipeId="r101" customerId="c101">
472              <text>Loved the flavors! Perfect balance of spices.</text>
473              <rating>5</rating>
474          </comment>
475          <comment id="com102" recipeId="r101" customerId="c102">
476              <text>Delicious! I will definitely make this again.</text>
477              <rating>4</rating>
478          </comment>
479          <comment id="com103" recipeId="r101" customerId="c103">
480              <text>Great recipe! Easy to follow and turned out amazing.</text>
481              <rating>5</rating>
482          </comment>
483          <comment id="com104" recipeId="r101" customerId="c104">
484              <text>Not a fan of the spices, but overall it was good.</text>
485              <rating>3</rating>
486          </comment>
487          <comment id="com105" recipeId="r101" customerId="c105">
488              <text>Yummy! The whole family loved it.</text>
489              <rating>5</rating>
490          </comment>
491          <comment id="com106" recipeId="r101" customerId="c101">
492              <text>One of my favorite recipes. So flavorful!</text>
493              <rating>5</rating>
494          </comment>
495          <comment id="com107" recipeId="r101" customerId="c102">
496              <text>Added some extra spices and it was perfect.</text>
497              <rating>4</rating>
498          </comment>
499          <comment id="com108" recipeId="r101" customerId="c103">
500              <text>Delicious and easy to make. Will make it again.</text>
501              <rating>5</rating>
502          </comment>
503          <comment id="com109" recipeId="r101" customerId="c104">
504              <text>Not a fan of the yogurt, but the rest was great.</text>
505              <rating>3</rating>
506          </comment>
507          <comment id="com110" recipeId="r101" customerId="c105">
508              <text>Amazing recipe! Will definitely recommend.</text>
509              <rating>5</rating>
510          </comment>
511          <!-- Additional comments -->
512      </comments>
513  </recipeBox>