MEP 3
Title Document type XML cleanup
Status Accepted
Created 2014-11-14
Author Harm Aarts

Document type XML cleanup

Abstract

This MEP contains a series of enhancements to the XML generated from the many document types.

Most changes are cosmetic in nature, some are semantic improvements and a single one is aimed at facilitating generation of valid XML.

These enhancements all have the goal of making the consumption, by human and machines alike, easier.

Current status

Open-Transactions currently serializes documents to XML prior to transport and/or storage. This XML (should) constitute a Ricardian contract.

Drawbacks

The current generated XML lacks consistency:

Enhancement

The enhancements are all small:

Impact

The impact of renaming attributes and elements is minimal: this is hardly more difficult than a search and replace operation. We can rely on the current test suite for relevant regressions.

Care should be taken communicating these changes to the community, as some concepts previously known under different names now have a uniform name.

The departure of the @ prefixes should also be explained. The @ prefixes are a construct from Truledger and understandably made it into OT. However, moving forward, this is now changed in favour of valid XML.