Convert MSGPACK to XML
Turn MSGPACK files into XML. Objects become elements inside one root element and every value becomes text, with characters a tag name cannot hold turned into underscores.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MSGPACK files on the dialor turn it to pick what to do
MessagePack data as an XML file.Objects become elements inside one root element, and every value becomes text.
What you get
One XML file. The objects in your MessagePack data become elements inside a single root element. Every value is written as text.
Characters that a tag name cannot hold are turned into underscores in the element names.
How keys and lists are written
A key that starts with @ becomes an attribute. When the value of such a key is a list or an object, it is written as JSON text. A #text key becomes the element's own text.
A list repeats its element, once for each item. An empty list therefore disappears from the output, and a list of lists is flattened.
Binary values and timestamps
Binary values become base64 text. Timestamps become ISO 8601 text in UTC.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted. The conversion has no options to set.To go the other way, use XML to MSGPACK.
MSGPACK and XML.What each format is.
The formats
MessagePack
Binary JSON: the same values as JSON in a compact byte encoding.
- Extensions
- .msgpack .mpk
- MIME type
- application
/msgpack - Kind
- Text and data
XML
XML documents and data.
- Extensions
- .xml
- MIME type
- application
/xml - Kind
- Text and data
In your code.The same MSGPACK to XML conversion through the API, for your app or your agent.
$ cv convert report.msgpack report.xml$ cv convert report.msgpack report.xmlQuestions.What people ask about MSGPACK to XML.
Objects become elements inside one root element. Keys with characters a tag name cannot hold have those characters turned into underscores.
Keys that start with @ become attributes. If the value is a list or an object, it is written as JSON text.
It disappears. A list repeats its element once per item, so an empty list leaves no element behind.
Timestamps become ISO 8601 text in UTC. Binary values become base64 text.