ArticleslgStudy

science

Binary XML

Binary XML is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Binary XML rather than just read about it. In short: Various binary formats have been proposed as compact representations for XML (Extensible Markup Language). Binary representation Using a binary XML format generally reduces the verbosity of XML documents thereby also reducing the cost of parsing, but hinders the use of ordinary text editors and third-party tools to view and edit the document.

Key takeaways

  • Binary XML belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Binary XML to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Binary XML from memory before moving on to harder problems.

Reference excerpt

Various binary formats have been proposed as compact representations for XML (Extensible Markup Language).

Binary representation Using a binary XML format generally reduces the verbosity of XML documents thereby also reducing the cost of parsing, but hinders the use of ordinary text editors and third-party tools to view and edit the document. There are several competing formats, but none has yet emerged as a de facto standard, although the World Wide Web Consortium adopted Efficient XML Interchange (EXI) as a Recommendation on 10 March 2011. Binary XML is typically used in applications where the performance of standard XML is insufficient, but the ability to convert the document to and from a form (XML) which is easily viewed and edited is valued. Other advantages may include enabling random access and indexing of XML documents. The major challenge for binary XML is to create a single, widely adopted standard. The International Organization for Standardization (ISO) and the International Telecommunication Union (ITU) published the Fast Infoset standard in 2007 and 2005, respectively. Another standard (ISO/IEC 23001-1), known as Binary MPEG format for XML (BiM), has been standardized by the ISO in 2001. BiM is used by many European Telecommunications Standards Institute (ETSI) standards for digital TV and mobile TV. The Open Geospatial Consortium provides a Binary XML Encoding Specification (currently a Best Practice Paper) optimized for geo-related data (GML) and also a benchmark to compare performance of Fast InfoSet, EXI, BXML and deflate to encode/decode AIXM. Alternatives to binary XML include using traditional file compression methods on XML documents (for example gzip); or using an existing standard such as ASN.1. Traditional compression methods, however, offer only the advantage of reduced file size, without the advantage of decreased parsing time or random access. ASN.1/PER forms the basis of Fast Infoset, which is one binary XML standard. There are also hybrid approaches (e.g., VTD-XML) that attach a small index file to an XML document to eliminate the overhead of parsing.

Binary XML efforts Projects and file formats using binary XML include:

BiM Standard, from the ISO, developed by the MPEG working group Fast Infoset, a standard published by ISO/IEC and ITU-T Efficient XML Interchange (EXI) W3C Recommendation, based on work by Efficient XML from AgileDelta, Inc. Extensible Binary Meta Language (EBML) from Matroska WAP Binary XML (WBXML) .NET Binary Format: XML Data Structure from Microsoft; the implementation included in .NET Framework 3.0 and later. Binary Markup Language (BML) Other projects that have functionality related to (or competing with) binary representations include:

VTD-XML from XimpleWare and VTD-XML project Protocol Buffers from Google Apache Thrift Data Distribution Service from OMG Apache Avro for Big Data Android application package uses an undocumented binary XML format; the source code is open and well-commentated. JsonML, Badgerfish, GData, OpenRally and Parker can represent XML in JSON, and then JSON can be represented in binary format like property list or BSON.

See also BSON MessagePack CBOR Canonical S-expressions

References

Worked examples

Example 1 — a first encounter with Binary XML

Start with the simplest possible case. Write down what Binary XML claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Binary XML before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Binary XML ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Binary XML

In research
Binary XML appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Binary XML in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Binary XML is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data serialization formats, XML, so understanding it makes those chapters shorter.
In everyday life
Look for Binary XML outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Binary XML” →

How to study Binary XML in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Binary XML means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Binary XML out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Binary XML in simple terms?

Various binary formats have been proposed as compact representations for XML (Extensible Markup Language). Binary representation Using a binary XML format generally reduces the verbosity of XML documents thereby also reducing the cost of parsing, but hinders the use of ordinary text editors and thi…

Why does Binary XML matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Binary XML?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Binary XML.

Tags

  • Data serialization formats
  • XML

Keep exploring