Re: REZKONV und Apple OS X



Am 13.03.2006 19:27 Uhr schrieb "Michael Braun" unter <braunmh@xxxxxxxxxxx>
in dv4ddu$p5p$03$1@xxxxxxxxxxxxxxxxx:

<?xml version="1.0" encoding="UTF-8"?>
<Recipe name="Pasta trita mit grünen Bohnen und Cheddar" imageUrl="">
<Categories>
<Category name="Teigwaren"></Category>
</Categories>
<Source type="" url="">Time-Life, Teigwaren auf neue Art (ISBN
90-6182-892-9), erfasst von Michael Braun Januar 2005</Source>

Dieses komplette XML-Beispiel habe ich YUM mal "zum Frass" vorgeworfen. Ist
nichts vernünftiges rausgekommen. In der zugehörigen Help-Datei steht für
mögliche Fremdformate: MasterCook Export File und XML Text File,
Zu Mastercook (Zitat) aus http://yumhelp.nixanz.com/:

MasterCook had two export formats, *.mxp (Mac/Windows) and *.mx2 (Windows
only MasterCook XML export format). The MasterCook export format (*.mxp) is
in ASCII text and you can read and print them with a word processor or text
editor. Exported *.mxp files can be directly imported into Yum


Zu XML-Format:
<Recipe>optional: use if Name of recipe is not on the first line
<Source>alt.food.xyz
<Name>required: (name of recipe) designates the Name element, must be placed
on first line
<Serves>4
<IngredientsList>recommended (where ingredients are in source file):
designates the rows of Ingredient element; collective tag for
<Amount>,<unit>, <Foodstuff>
<Method>recommended (where directions or other text is in source file):
designates the instructions for preparation

It is recommended to always include <Name>.

These tags work with plain-text files or 3rd party XML files.

If one or more tags are not applicable to the source recipe, they maybe
omitted to imply nothing to import, except <Name>.

An open and close tag may be used without content (<makes></makes>) to
imply nothing to import.

XML end tags are optional. If omitted, recipes can be still distinguished
with each opening <name> tag.

Multiple recipes can be included in a single text file so long as every
recipe starts with a "recipe" tag or every recipe starts with a "name" tag.

XML tags for empty fields can be omitted.

Sub-tags within "ingredients" content (i.e., "ingredient", "amount",
"unit", "foodstuff" tags) are optional (if omitted ingredients can be
separated by newlines, and amount, unit and foodstuff separated by spaces).

Categories can be separated by commas and/or newlines within the
<Categorylist> tag.

There should be only one ingredient per line. An ingredient line may
consist of the amount, unit and the name of the ingredient (foodstuff), in
this order.

The ingredient list should be separated by a single empty line from the
recipe header <Name>

The text of the recipe (method) should be separated by at least one empty
line from the ingredients.

Multiple recipes can be included in a single text file so long as every
recipe starts with a <recipe> tag or every recipe starts with a <name> tag.

Tags are case-insenstive.

.



Relevant Pages

  • Re: Getting NASM from C
    ... > format we were going to edit it in... ... all XML is? ... HTML is a specific "subset" of XML for displaying ... it's a text file with "tags" inside ...
    (alt.lang.asm)
  • Re: Gotta start somewhere ... how many of us are really out there?
    ... if you are thinking of using XML ... pure shell commands ... ... or whatever XML tags you want to use using the acutal ... accompish all this in hindsight,as all the commands ...
    (freebsd-questions)
  • Re: Read binary data file
    ... I think its use is quite industry-dependent: I've never seen it used in financial messaging (that's more likely to use SWIFT formats, which are tagged text) but its common in the telecommunications industry. ... Compared with XML its a LOT more compact (tags are one byte, fixed length fields don't have terminators, variable length fields are preceded by a one or two byte length) and it has a number of predefined field types as well as arrays. ...
    (comp.lang.java.programmer)
  • Re: xml parsing issue
    ... point all data is being created and writing to xml file what I need. ... The output file has the following tags: ... The VLAN tag and attribute get created but a closing tag never does. ...
    (microsoft.public.scripting.vbscript)
  • Re: XML or SQL Server?
    ... Recipe Ingredients... ... load performance. ... I would recommend using a database of some sort ... ... XML files ...
    (microsoft.public.dotnet.languages.vb)