Jump to content

Efficient XML Interchange

From Wikipedia, the free encyclopedia

Efficient XML Interchange (EXI) is a binary XML format for exchange of data on a computer network. It was developed by the W3C's Efficient Extensible Interchange Working Group and is one of the most prominent efforts to encode XML documents in a binary data format, rather than plain text. Using EXI format reduces the verbosity of XML documents as well as the cost of parsing. Improvements in the performance of writing (generating) content depends on the speed of the medium being written to, the methods and quality of actual implementations. EXI is useful for

  • a complete range of XML document sizes, from dozens of bytes to terabytes
  • reducing computational overhead to speed up parsing of compressed documents
  • increasing endurance of small devices by utilizing efficient decompression

History

[edit]

The World Wide Web Consortium (W3C) formed a working group to standardize on a format in March 2006. EXI was chosen as W3C's Binary XML format after an evaluation of various proposals that included Fast Infoset.[1] The EXI format is derived from the AgileDelta Efficient XML format.[2][3] EXI was adopted as a W3C recommendation by the W3C on 10 March 2011. A second edition was published in February 2014.[4]

In November 2016, the working group was renamed to "Efficient Extensible Interchange (EXI)" from "Efficient XML Interchange (EXI)" to reflect the broader scope of EXI applicability beyond XML to other data-description languages.[5]

Features

[edit]

An advantage of EXI over Fast Infoset is that EXI (optionally) uses more constraints from the XML schema. This can make the EXI data more compact;[6] for example, if the XML schema specifies that elements named 'bar' may only exist within elements named 'foo', EXI can assign a shorter token to the 'bar' element, knowing that it doesn't have to share the same token space as elements that occur elsewhere in the document. The main disadvantage to utilizing such "schema-informed" compression is that, not only does the document require a schema, but the decoder needs a copy of the same schema that the encoder used.[6] Nevertheless, even in schemaless mode, EXI delivers better data compression ratios than Fast Infoset while being more efficient in both processing time and memory usage.[7]

Uses

[edit]

A variety of EXI-capable applications are available.[8]

A variety of EXI implementations are available that enable the integration of EXI capabilities in other tools.[9]

EXI was recommended for use in the US Department of Defense Global Information Grid.[10]

EXI is being adapted for non-XML data formats as well.

EXI4JSON

[edit]

EXI4JSON is a specification developed by the same working group to use the same format for JSON documents.[11] It does so by defining a mapping of JSON to the XML Infoset, which can then be encoded efficiently by applying a standard schema-informed EXI grammar to the resulting XML document.[12] When used to encode JSON-LD data, EXI4JSON was found to consistently outperform CBOR in data compaction.[13]

Future work

[edit]

Multiple experimental initiatives continue to be pursued by the EXI Working Group.

  • EXI4CSS is exploring how to map Cascading Style Sheets (CSS) to EXI.[5]
  • EXI for JavaScript appears to be possible if using the initial structured parse tree for source code.[5]
  • Considering potential composition of XML EXI with XML Encryption and XML Digital Signature.

References

[edit]
  1. ^ Robin Berjon; Jaakko Kangasharju, eds. (20 July 2006). "Analysis of the EXI Measurements". W3C. Retrieved 23 September 2016.
  2. ^ "Lightning-Fast Delivery of XML to More Devices in More Locations". AgileDelta. 5 November 2015. Retrieved 23 September 2016.
  3. ^ Mishra, Manvi; Gupta, Prabhakar; et al. (2024). "Rapid and Close-Packed Xml Solution with Efficient Extensible Interchange (EXI)". In Tripathi, Suman Lata; et al. (eds.). Emerging Trends in IoT and Computing Technologies. CRC Press. doi:10.1201/9781003535423-74. ISBN 9781003535423.
  4. ^ "Efficient XML Interchange Working Group". Public web site. W3C. Retrieved 23 September 2016.
  5. ^ a b c Peintner, Daniel (22 November 2016). "Efficient representation for Web formats". W3C Blog. W3C. Archived from the original on 22 October 2023.
  6. ^ a b Hill, Bruce W. (March 2015). Evaluation of efficient XML interchange (EXI) for large datasets and as an alternative to binary JSON encodings (Master's thesis). Monterey, CA: Naval Postgraduate School. hdl:10945/45196.
  7. ^ Jaiswal, G.; Mishra, M. (23 February 2013). "Why use Efficient XML Interchange instead of Fast Infoset". 2013 3rd IEEE International Advance Computing Conference. IEEE. doi:10.1109/IAdCC.2013.6514350.
  8. ^ EXI Working Group (28 March 2017). "EXI Deployment". EXI Working Group public page. World Wide Web Consortium. Retrieved 28 March 2017.
  9. ^ Kamiya, Takuki (28 March 2017). "EXI Implementations". EXI Working Group public page. World Wide Web Consortium. Retrieved 28 March 2017.
  10. ^ Snyder, Sheldon L. (1 March 2010). Efficient XML Interchange (EXI) Compression and Performance Benefits: Development, Implementation and Evaluation (Master's thesis). Naval Postgraduate School. hdl:10945/5422.
  11. ^ Daniel Peintner; Don Brutzman, eds. (23 August 2016). "EXI for JSON (EXI4JSON)". Public Working Draft. World Wide Web Consortium. Retrieved 23 September 2016.
  12. ^ Berzosa, Jorge (2019). A context- and template-based data compression approach to improve resource-constrained IoT systems interoperability (PhD thesis). EHU. hdl:10810/35147.
  13. ^ Charpenay, V.; Käbisch, S.; Kosch, H. (3 June 2018). Towards a Binary Object Notation for RDF. The Semantic Web: ESWC 2018. Heraklion, Crete: Springer Nature. p. 97–111. doi:10.1007/978-3-319-93417-4_7. ISBN 978-3-319-93417-4.
[edit]