xml version encoding UTF-8 recipe name bread prep_time mins cook_time

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient aaaamao="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<!-- Comment without dashes -->
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
</instructions>
<!-- Correct: well-formed XML fragment. -->
<title>Book on Logic</title><author>Aristotle</author>
<foo><俄語>Китайский язык</俄語></foo>
<foo unit="dL"></foo>
<foo/>
<!-- Comment with - two - or - more - dashes -->
<info author="John Smith" genre="science-fiction" date="2009-Jan-01" />
<превед count="1" alt="Ктулху">медвед</превед>
</recipe>