BeerXML
BeerXML is a free, fully defined XML data description standard designed for the exchange of beer brewing recipes and other brewing data. Tables of recipes as well as other records such as hop schedules and malt bills can be represented using BeerXML for use by brewing software.
BeerXML is an open standard and as a subset of Extensible Markup Language. BeerXML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
BeerXML is supported by a number of web sites, computer programmes and an increasing number of Android Windows Phone and iOS apps.
Plugins and extensions supporting BeerXML have been written for a variety of platforms including Ruby via RubyGems, WordPress, PHP and JavaScript
Many brewing hardware manufacturers incorporate BeerXML into their systems and third party plugins and patches are being developed for brewery control hardware and embedded systems allowing the automation and fine control and timing of processes such as mashing and potentially fermentation.
Common applications and examples of usage
BeerXML is used in both amateur and professional brewing and facilitates the sharing of brewing data over the internet. Users of different applications such as the open-source software Brewtarget can share data via XML with users of popular proprietary software such as Beersmith and or upload their data to share on BeerXML compatible sharing sites and cloud platforms such as Brewtoad or the Beersmith Recipe Cloud. A user of a recipe design and sharing and creation site such as Brewersfriend.com can import and export BeerXML to and from mobile apps or enter it into a brewing competition database such as The Brew Competition Online Entry & Management system.The adoption of BeerXML as a standard is leading to new developments such as ingredients databases which attempt to standardise ingredients definitions and characteristics. Brewers can use platforms like Brewblogger.com to create recipes and log their brewday for publication as a blog and for export to databases and common spreadsheet applications.
JavaScript applications such as brauhaus.js allow users to run them on a local machine or web browser for execution through any standards compliant web browser.
Supported fields
The following fields form the core information of the BeerXML structure- Recipes
Brewer
Brewing method
Recipe Type
Recipe volume
Boil volume
Boil time
Recipe efficiency
Estimated values
OG
FG
Color
Bitterness
Alcohol content
- Hops
Origin
Description
Alpha acids
Beta acids
Storageability
Humulene
Caryophyllene
Cohumulone
Myrcene
Farsene
Total oil
Recipe Specific - When added
Amount
Time
- Fermentables
Origin
Description
Type
Potential
Recommend Mash
IBU gal/lb
Color
Moisture content
Protein content
Diastatic power
Maximum used
Recipe Specific
Amount
Late Addition
- Additives
Description
Type
Recipe Specific - When added
Amount
Time
Yeasts
Name
Supplier
Catalog number
Description
Type
Form
Best for
Temperature range
Flocculation
Attenuation
Max reuse
Recipe Specific
Amount
Added to secondary
Time cultured
Limitations
BeerXML 1.0 supports no more than three fermentation steps. While this is not a real world limitation for many brewers, it does introduce a discrepancy where a software tool or web service that allows several or unlimited fermentation steps wishes to implement BeerXML as an import/export mechanism. For example; where a fermentation schedule instruction to pitch at 21 degrees Celsius, allow to drop to 17 over three days and then decrease by 1 degree per day until the wort reaches 10 degrees, hold for 12 days before racking for maturation. This could not be accommodated within the formal structure requiring the use of informal/optional and non machine readable fields.All units are converted to SI units internally. As a result, there is loss of precision when converting non SI units whether they be Imperial, US Customary or metric.
Hop oil contributions in the copper are not explicitly supported in the current definition.
Farsene levels are not explicitly supported in the current definition.
No distinction is made between weight and mass
Development
The BeerXML standard has a proposed second version which has been mooted and is under development. It has not been validated or published as its feature set is still under discussion.XML Header
As in XML, all files begin with a header line as the first line. After the XML header a record set should start.Required XML Header Example with Recipes tag:
…
Tag Names
Tag names are always uppercase. For example, "HOP" is acceptable, but "hop" and Hop" are not.Version
All records have a requiredData Formats
- Record Set – A special tag that starts a particular set of data. For example, an XML table that consists of a set of hops records might start with a
tag to denote that this is the start of hops records. After the last record, a tag would be used. - Record - Denotes a tag that starts or ends a particular record—for example "HOP" might start a hops record or "FERMENTABLE" might start a fermentable record.
- Percentage - Denotes a percentage - all percentages are expressed as percent out of 100- for example 10.4% is written as "10.4" and not "0.104"
- List - The data has only a fixed number of values that are selected from the list in the description table for the tag. These items are case sensitive, and no other values are allowed.
- Text - The data is free format text. For multiline entries, line breaks will be preserved where possible and the text may be truncated on import if the text is too long for the importing program to store. Multiline entries may be split with either a newline or a carriage return – newline combination. Importing programmes should accept either.
- Boolean - The Boolean data type may be either TRUE or FALSE, with TRUE and FALSE in capitals. A default value should be specified for optional fields - the default is used if the value is not present.
- Integer - An integer number with no decimal point. May include negative values - examples include...-3, -2, -1, 0, 1, 2, 3,...
- Floating Point - A floating point number, usually expressed in its simplest form with a decimal point as in "1.2", "0.004", etc... Programmes should endeavor to store as many significant digits as possible to avoid truncating or losing small values.
Units
; Weight Units: All weights are measured in Kilograms. For small values the exporting programme will make an effort to preserve as many significant digits as possible.
; Volume Units: All volumes are measured in Litres. For small values the exporting programme will make an effort to preserve as many significant digits as possible.
; Temperature Units: All temperatures are measured in degrees Celsius.
; Time Units: All times are given in minutes or fractions thereof – unless otherwise specified in the tag description.
; Specific Gravity Units: Specific gravity are measured relative to the weight of the same size sample of water. For example, “1.035”, “1.060”, and so on.
; Pressure Units: Pressures are measured in kilopascals