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.

  1. 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.

  2. 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.

  3. Binary values and timestamps

    Binary values become base64 text. Timestamps become ISO 8601 text in UTC.

  4. 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

From · MSGPACK

MessagePack

Binary JSON: the same values as JSON in a compact byte encoding.

Extensions
.msgpack .mpk
MIME type
application/msgpack
Kind
Text and data
To · XML

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.

terminal
$ cv convert report.msgpack report.xml
$ cv convert report.msgpack report.xml

Questions.What people ask about MSGPACK to XML.

01OF 04

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.

More conversions.Other ways in and out of MSGPACK and XML.