xml - I get an error that says I am not allowed -
xml - I get an error that says I am not allowed -
error code why not allowed?or how can prepare it? file c:\users\randy\documents\school\xml\week5\tutorial.05x\case4\mealstxt.xml not valid. content model of element 'recipes' disallows element 'recipe' @ position. error location: recipes / recipe details vc: element valid: content model of element 'recipes' disallows element 'recipe' @ position.
error number 2
file c:\users\randy\documents\school\xml\week5\tutorial.05x\case4\mealstxt.xml not valid. content model of element 'recipes' disallows element 'heading' @ position. error location: recipes / heading details vc: element valid: content model of element 'recipes' disallows element 'heading' @ position.
<?xml version="1.0" encoding="utf-8"?> <!-- webchef recipes author: randy white date: 7/10/2011 filename: meals.xml supporting files: meals.css --> <!doctype recipes [ <!element recipes (heading, heading2, heading3, ch_element+) > <!element heading (#pcdata)> <!element heading2 (#pcdata)> <!element heading3 (#pcdata)> <!element ch_element (number, symbol, wgt)> <!attlist ch_element id id #required> <!element number (#pcdata)> <!element symbol (#pcdata)> <!element wgt (#pcdata)> ]> <?xml-stylesheet type="text/css" href="pchart.css" ?> <recipes> <heading>chinese recipes</heading> <recipe> <name>beggar's chicken</name> <description> beggar's chicken traditional dish hangzhoui. legend has disk indeed created beggars. </description> <ingredients> <ingredient> 1 3lb fryer chicken </ingredient> <ingredient> 2 teaspoons salt </ingredient> <ingredient> 1 teaspoon ginger juice </ingredient> <ingredient> 4 tablespoons oil </ingredient> <ingredient> 1 chopped scallion </ingredient> <ingredient> 4 ounces shredded pork </ingredient> <ingredient> 1 tablespoon sherry </ingredient> <ingredient> 1 tablespoon lite soy sauce </ingredient> <ingredient> 1 teaspoon sugar </ingredient> <ingredient> 2 ounces preserved yuanne cabbage, julienne </ingredient> <ingredient> aluminum foil </ingredient> </ingredients> <instructions> <step>rub cleaned chicked salt. rub ginger juice within of chicken. set aside. </step> <step>heat 2 tablespoons of oil in wok. stir-fry scallion. add together pork. stir on high heat. add together sherry, sauce, , sugar. remove bowl. </step> <step>heat 2 tablespoons of oil in wok. stir-fry cabbage. pour in meat mixture. stir-fry 1 minute. </step> <step>stuff meat mixture chicken. wrap in aluminum foil , place in pan. </step> <step>back chicken 1 hr @ 350 degrees. turn heat 400 degrees , bake 15 more minutes. </step> <step>remove foil. remove stuffing chicken platter. cutting chicken bit-sized pieces. arrange on top of stuffing. </step> </instructions> </recipe> <recipe> <name>chicken chestnuts</name> <description> popular dish shanghai, dish quick , easy make. </description> <ingredients> <ingredient> 1 pound chestnuts </ingredient> <ingredient> 4 tablespoons oil </ingredient> <ingredient> 1 piece ginger, 1/8" thick </ingredient> <ingredient> 1 scallion, cutting 4 pieces </ingredient> <ingredient> 1 3lb fryer, cutting 2" pieces </ingredient> <ingredient> 2 tablespoons sherry </ingredient> <ingredient> 1/2 teaspoon salt </ingredient> <ingredient> 1/4 cup dark soy sauce </ingredient> <ingredient> 2 cups water </ingredient> <ingredient> 1 tablespoon sugar </ingredient> </ingredients> <instructions> <step>cut chestnuts halves. cover water. simmer 30 minutes. remove shells , skin. set aside. </step> <step>heat oil in wok. stir-fry ginger , scallions 30 seconds. add together chicken. stir-fry 1 minute. add together sherry, salt, soy sauce, , water. cover , simmer 30 minutes. </step> <step>add chestnuts , sugar. simmer 10 minutes more. </step> <step>bring high heat , cook 5 minutes. remove platter. serve hot. </step> </instructions> </recipe> <recipe> <name>salted duck</name> <description> dish nanking served cold. works best on buffet table. </description> <ingredients> <ingredient> 1 5-lb duck </ingredient> <ingredient> 2 tablespoons salt </ingredient> <ingredient> 1 tablespoon ginger juice </ingredient> <ingredient> water </ingredient> </ingredients> <instructions> <step>wash , clean duck. wipe dry. </step> <step>rub duck salt within , out. wrap in foil. refrigerate 3 days. </step> <step>rub within of duck ginger juice. </step> <step>put duck in big saucepan. cover water. bring boil. simmer 2 hours. </step> <step>chill. chop bite-sized pieces , serve cold. </step> </instructions> </recipe> <recipe> <name>beef onions</name> <description> quick , easy dish shanghai. best served on bed of rice. </description> <ingredients> <ingredient> 1 lb beef steak, julienne </ingredient> <ingredient> 1 teaspoon salt </ingredient> <ingredient> 3 egg white </ingredient> <ingredient> 3 tablespoons cornstarch </ingredient> <ingredient> 4 cups oil deep-frying </ingredient> <ingredient> 4 sliced onions </ingredient> <ingredient> 1 tablespoon dry sherry </ingredient> <ingredient> 1 tablespoon sugar </ingredient> <ingredient> 4 tablespoons dark soy sauce </ingredient> </ingredients> <instructions> <step>combine beef, salt, egg white , cornstarch. mix well. </step> <step>heat oil in wok. deep-fry beef until seared. drain. </step> <step>reheat 2 tablespoons of oil in wok. add together onions. stir-fry until soft , browned. </step> <step>add beef, sherry, sugar, , soy sauce. stir-fry 1 min until beef glazed , brown. </step> </instructions> </recipe> <recipe> <name>szechwan beef</name> <description> 1 of classic chinese dishes. </description> <ingredients> <ingredient> 1 lb flank steak, shredded </ingredient> <ingredient> 1 teaspoon salt </ingredient> <ingredient> 2 egg white </ingredient> <ingredient> 2 tablespoons cornstarch </ingredient> <ingredient> 4 cups oil deep-frying </ingredient> <ingredient> 1/2 cup shredded bamboo shoots. </ingredient> <ingredient> 1/2 cup shredded greenish pepper </ingredient> <ingredient> 1 tablespoon dark soy sauce </ingredient> <ingredient> 1 teaspoon chili paste garlic </ingredient> <ingredient> 1/2 ounce mung bean </ingredient> </ingredients> <instructions> <step>mix beef, salt, egg white, , cornstarch. </step> <step>heat oil in wok. deep-fry beef 1 minute. drain. remove. </step> <step>reheat 2 tablespoons of oil in wok. stir-fry bamboo shoots , greenish pepper 30 seconds. add together beef, soy sauce, chili paste garlic, , sugar. stir-fy 1 minute. remove. </step> <step>reheat 2 cups of oil in wok smoking hot. deep-fry mung bean 1 second. remove platter. pour meat on fried mung bean. </step> </instructions> </recipe> <recipe> <name>twice-cooked pork</name> <description> szechwan dish extremely popular. </description> <ingredients> <ingredient> 1 lb pork loin </ingredient> <ingredient> 2 cups water </ingredient> <ingredient> 5 tablespoons oil </ingredient> <ingredient> 1 leek, cutting 1" pieces </ingredient> <ingredient> 1/2 reddish pepper, cutting lean strips </ingredient> <ingredient> 1/2 greenish pepper, cutting lean strips </ingredient> <ingredient> 1 tablespoon bean sauce </ingredient> <ingredient> 1 teaspoon ginger </ingredient> <ingredient> 1 tablespoon sherry </ingredient> <ingredient> 1 tablespoon dark soy sauce </ingredient> <ingredient> 1 tablespoon chili paste garlic </ingredient> <ingredient> 2 gloves minced garlic </ingredient> <ingredient> 1 lean piece minced ginger </ingredient> <ingredient> 2 scallion, cutting 1" pieces </ingredient> </ingredients> <instructions> <step>cook pork in water 20 minutes. drain , cool. </step> <step>cut pork across grains paper-thin slices. </step> <step>heat 2 tablesppons of oil in wok. stir-fry leek until wilted. add together reddish , greenish peppers. stir-fry 30 seconds. remove. </step> <step>heat 2 more tablespoons of oil in wok. add together pork. stir-fry 1 minute. remove. </step> <step>heat 1 tablespoon oil in wok. stir-fry bean sauce under moderate heat. add together sugar. stir-fry 1 minute. add together pork, leek, , peppers. cook on high heat 1 minute. add together sherry, soy sauce, , chili paste garlic. add together garlic , ginger. stir-fry thoroughly. add together scallion. stir fry 30 seconds. </step> </instructions> </recipe> </recipes>
the line
<!element recipes (heading, heading2, heading3, ch_element+) >
says recipes
element must composed of heading
element, followed heading2
element, etc., there no recipe
element in there. can't have recipe
element within recipes
element.
xml
Comments
Post a Comment