1 11/29/05CS360 Windows Programming XML. 2 11/29/05CS360 Windows Programming What is XML?  XML: Extensible Markup Language  HTML expresses appearance.

Slides:



Advertisements
Similar presentations
1.02 C Work Plans 1 The secret for success!. Why use a work plan? It is important to use a work plan to help meal preparation run smoothly. To implement.
Advertisements

Recipes.
Understanding Recipes
How To Make Chocolate Chip Cookies By: Kevin Klosky.
Measuring Techniques & Recipe Formats
Next. Ingredients for your Chocolate Brownies Your ingredients for your Chocolate Brownie 3/4 cup cocoa, unsweetened 1/2 teaspoon baking soda 2/3 cup.
Baking Chocolate Chip Cookies Ms. Davis Life Skill Class July 11th, 2004.
Amazing pancakes! ((FROM SCRATCH!!)) Created by Jaime Kolbe ;)
By: Amber Newcomb. 1 cup of granulated sugar 3/4 cup of butter or 1 ½ sticks 1 cup of firmly packed light brown sugar 3 large eggs 1 teaspoon vanilla.
Cookies In All Kinds and Colors My favorite cookies by Ms. Kampner.
 150 grams of honey  100 grams of butter  2 big eggs  100 grams of sugar  A cup of flour  Half a teaspoon of salt  Package of baking powder  A.
By Brianne and Lacey This presentation is going to explain to you how to make chocolate chip cookies. Supplies Ingredients Directions It will include:
1.02 I Preparation Tasks List
Vocabulary for. bakery A place where bread and other baked goods are made and sold.
Muffins Made Easy By Clairann Duncan. Sizing up Muffins Muffins cups come in all shapes and sizes, from bite- size minis to standard 21/2-inch cups to.
White Chocolate Orange Cookies. 1 cup butter softened 1/2 cup white sugar 1/2 cup brown sugar 1 egg 1 tablespoon orange zest 2 1/4 cups all-purpose flour.
© 2011 wheresjenny.com BROWNIES SERVINGS: 16 PIECES PREPARATION TIME : ONE HOUR.
By James Creamer Cupcake Recipe. Ingredients 2 1/4 cups all purpose flour 1 1/3 cups sugar 3 teaspoons baking powder 1/2 teaspoon salt 1/2 cup shortening.
By: Shaelyn Laurie How To Bake A Cake. Step 1: The Recipe Ingredients 2 cups (500 mL) sugar 4 eggs 2-1/2 cups (625 mL) all-purpose flour 1 cup (250 mL)
Transition Words Cake Recipe.
Cake Recipe. Ingredients Utensils 1 st Step Pre-Heat oven to 180 degrees Celsius.
Standards of Measurement A.Abbreviations 1.T or Tbsp 2.t or tsp 3.c 4.pt 5.qt 6.gal 7.oz 8.lb 9.f. g. 10.L T.
BROWNIE This work is done by: -Alejandro -Borja. These are the ingredients >150 grams of black chocolate >200 grams of butter >200 grams of sugar >80.
Streptococcus pneumoniae. Fig. 6.3b Avery, McCarty and MacLoed, 1944.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
How to Make Chocolate Chip Cookies By Sara Hokkala.
Mary Condes BANANA BREAD RECIPE.  3/4 c sugar  1/2 c margarine (1 stick)  2 eggs  1 1/2 c smashed bananas (4-6)  1 tsp vanilla  1 c shredded bran.
1.02 I Preparation Tasks List 11.02I Listing Preparation Tasks.
Baking Cookies English Club eats chocolate chip cookies!
How To Make Brownies By: Khady Diack. Materials 1/ 2 c. butter 2 oz. unsweetened chocolate 2 eggs 1 c. sugar 1 tsp. vanilla 3/4 c. all-purpose flour 1/2.
RECIPE. NAME: Three chocolates cake. INGREDIENTS 3 cups 1 1/2 tsp 3/4 tsp 1 1/2 tsp 2 2/3 cups 1 cup + 2 Tb 1 cup + 2 Tb 1 cup + 2 Tb 5 large or 4 Jumbo.
1.02 C Work Plans 1 The secret for success!. Why use a work plan? Helps meal preparation run smoothly Implement these steps: 1.02CWork Plans2 Steps 1-
How to Bake Brownies Julie Galbraith FVP12. Supplies Needed An Oven A Pan Butter Salt Flour Sugar Cocoa Vanilla Baking Powder Eggs Spoons Measuring Cups.
Instructional Video Read the Recipe Select Ingredients And Equipment Prepare The Recipe BAKING COOKIES IN THE VIRTUAL WORLD HELP About LO.
Dominika Lehocká.  2 cups all-purpose flour  1 cup white sugar  3/4 cup chocolate chips  1/2 cup unsweetened cocoa powder  1 teaspoon baking soda.
How to make a BIG sponge cake! By Gina kinsman.. Ingredients! You will need: ½ cup of milk 2 teaspoons & table spoons of unsalted butter 8 large eggs.
期末考. 翻譯英文食譜 每人一張不重複 Open book 可攜帶筆記、字典、電子產品等工具查詢.
FROM SCRATCH UTENSILS NEEDED Original recipe makes 1 - 9x13 inch cake 9X13 Dish Pan Large Bowl.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
Cookies !. Ingredients: 3/4 cup granulated sugar 3/4 cup packed brown sugar 1 cup butter or margarine, softened 1 teaspoon vanilla 1 egg 2 cups Gold Medal.
Functional Text. What is “functional text?” Instruction manuals Recipes Lists of facts (ex: nutrition facts) Table of contents Index Directions That is.
Are you ready to bake???? Coconut BallsChocolate Chip Cookies.
How to make chocolate chip cookies By Rose Savage.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Reading Recipes Unscramble the following sentence: “Reebof uyo can eb a dgoo okco, uyo tmsu sitrf eanrl ot aerd a eeiprc.” “Before you can be a good cook,
Pineapple Upside Down Cake Katherine Babbini. Collect all your ingredients.
Warm-Up What’s wrong with this recipe?
Apple Cinnamon Muffins. Person 1 In a bowl mix 1 ½ c flour 3/4 c white sugar ½ tsp salt 2 tsp cinnamon 2 tsp baking powder.
How to Make Chocolate Chip Cookies Caity Jozwiak Period 6.
+ Chocolate Chip Cookies Diamond Britton. + Recipe (2 dozen) 1 teaspoon baking soda 1 teaspoon vanilla extract 1 large egg 1 cup flour 1 teaspoon salt.
Grease and lightly flour an 8x8x2-inch baking pan. Melt chocolate and butter; cool. Stir together flour, baking powder, and ¼ teaspoon salt. In a mixer.
How to Make Chocolate Chip Cookies
Chocolate Chip Cookies Measurements. Measure Smarter 18 (v) oz. all-purpose flour 1/3 T baking soda 3/4 t & 2 pinches salt 2 sticks butter, softened 12.
By: Brianna Battista HOW TO MAKEBROWNIES!!!
How to Make Chocolate Chip Cookies Fast, Easy, and Yummy Original Author Unknown Modified By: CTAE Resource Network.
Ingredients 1’1/3 cup (150 g) all-purpose flour 1’½ cup (330 g) sugar 4 tablespoons unsweetened cocoa powder 1 teaspoon baking powder 1 teaspoon vanilla.
Sour Cream Pound Cake. 2 cups butter, softened 3 cups white sugar 6 eggs 1 teaspoon vanilla extract.
Make up Lab Brownies C. Kingsbury. C. Kingsbury Date Submitted 9/5/11 Creative Foods Date absent 9/2/11 Lab missed: Brownies Recipe: Dark Chocolate Raspberry.
How to Make a Cake Mrs. Janasik.
Recipe Notes.
How can we do cookies ?. How can we do cookies ?
Pancake Poppers INGREDIENTS

Recipes.
Chocolate Delight.
Maple Peanut Butter Thumbprint Cookies
Let’s make Cookies!.
Cinnamon rolls Using the yeast dough.
Fudgy Chocolate Brownies Recipe
1.02 C Work Plans The secret for success! 1.02C Work Plans.
Presentation transcript:

1 11/29/05CS360 Windows Programming XML

2 11/29/05CS360 Windows Programming What is XML?  XML: Extensible Markup Language  HTML expresses appearance  XML is designed to express raw attention  No predefined tags  All text  Provides a common data format for exchanging information

3 11/29/05CS360 Windows Programming XML  Nothing remarkable about XML  However, there are numerous tools available for reading and writing XML  What would you do if you were handed a large free-formatted text file?

4 11/29/05CS360 Windows Programming HTML  What is HTML? Recipe Chocolate Chip Bars  How does XML differ?

5 11/29/05CS360 Windows Programming XML vs. HTML  Example: Shereen Khoja Chocolate Chip Bars  Tags are invented to describe the content  Tags need to make sense to be useful

6 11/29/05CS360 Windows Programming XML  Language for describing data and the structure of data  Start with an XML declaration   This is a processing instruction

7 11/29/05CS360 Windows Programming XML  Following the XML declaration is the document’s root element o Also called the document element   ….   Every document must have a document element

8 11/29/05CS360 Windows Programming Element Names  Must conform to a set of rules o  Consist of letters or underscore  Followed by letters, digits, periods, hyphens, and underscores  No spaces!

9 11/29/05CS360 Windows Programming Elements  Building blocks of XML  May contain o Data o Other elements o Or both  Always delimited by start and end tags

10 11/29/05CS360 Windows Programming Example Gibson SG 1977 Tobacco Sunburst Rosewood Fender Stratocaster Black Rosewood

11 11/29/05CS360 Windows Programming Another Example Shereen Khoja Chocolate Chip Bars Dinner Dessert 2/3 C butter 2 C brown sugar 1 tsp vanilla 1 3/4 C unsifted all-purpose flour 1 1/2 tsp baking powder 1/2 tsp salt 3 eggs 1/2 C chopped nuts 2 cups (12-oz pkg.) semi-sweet choc. chips Preheat oven to 350 degrees. Melt butter; combine with brown sugar and vanilla in large mixing bowl. Set aside to cool. Combine flour, baking powder, and salt; set aside. Add eggs to cooled sugar mixture; beat well. Stir in reserved dry ingredients, nuts, and chips. Spread in greased 13-by-9-inch pan. Bake for 25 to 30 minutes until golden brown; cool. Cut into squares.

12 11/29/05CS360 Windows Programming XML  Contains no information on layout  Layout instructions will come from elsewheree

13 11/29/05CS360 Windows Programming Well Formed  XML documents must be well formed o What does this mean?  It must follow three rules o Document starts with an XML declaration o There is a root element in which all others are contained o All elements must be properly nested  chocolate chips

14 11/29/05CS360 Windows Programming Well Formed XML  Breaking any of the rules for XML well formed documents will result in a fatal error o What does this mean?  Application will refuse to process XML  XML documents can be very long  How do we find errors?

15 11/29/05CS360 Windows Programming XML Parsers  Solution: Use an XML parser  Many free ones are available online o Lark:

16 11/29/05CS360 Windows Programming Valid XML Shereen Khoja Chocolate Chip Bars Dinner Dessert Melt butter; combine with, etc....

17 11/29/05CS360 Windows Programming Valid XML  Valid XML must match a Document Type Definition (DTD)  Who creates the DTD? o We do!  DTD defines the tags that can be used in an XML documents  It also defines the type of data within the tags

18 11/29/05CS360 Windows Programming Valid XML <!DOCTYPE list [ ]>

19 11/29/05CS360 Windows Programming Validating Parsers  How can we test that an XML document is valid?  Use a validating parser  IE5 is an example of a validating parser

20 11/29/05CS360 Windows Programming XML in Action  XML is used in many applications o Banks use proprietary systems to track transactions internally, but if they use a common XML format over the Web, then they'd be able to describe transaction information to another institution or an application (like Quicken or MS Money). Of course, they'd also be able to present the data in a pretty Web page.

21 11/29/05CS360 Windows Programming XML in Action  Give an example of where you might use XML in an application….

22 11/29/05CS360 Windows Programming Summary  Completed Chapter 12  Next Time o XML in.NET