Convert BZ2 to XML

Turn BZ2 archives into XML. The bzip2 layer is removed and the bytes inside are written as they were.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop BZ2 files on the dialor turn it to pick what to do

The XML inside, taken out of the BZ2.The bzip2 layer comes off. The XML inside is written as it was.

  1. What you get

    One XML file. The bzip2 layer is removed and the bytes inside are written exactly as they were, so the content is the same as before it was compressed.

    There are no options to set. The conversion has one job: unpack the file and hand back what was inside.

  2. Ask for the right format

    Choose XML only when you know the file inside the BZ2 is XML. Any other target for the contents is refused, and the same goes for a mismatch between what you ask for and what is inside.

    A conversion also stops with unsupported_elements when the file holds something the target cannot carry, or when an input cannot become the format the conversion takes. A file that cannot be parsed stops with input_corrupted.

  3. Going the other way

    To compress an XML file again, use XML to BZ2. For other archive and text conversions, see every BZ2 conversion.

BZ2 and XML.What each format is.

The formats

From · BZ2

Bzip2

A single file compressed with bzip2.

Extensions
.bz2
MIME type
application/x-bzip2
Kind
Archives
To · XML

XML

XML documents and data.

Extensions
.xml
MIME type
application/xml
Kind
Text and data

In your code.The same BZ2 to XML conversion through the API, for your app or your agent.

terminal
$ cv convert archive.bz2 archive.xml
$ cv convert archive.bz2 archive.xml

Questions.What people ask about BZ2 to XML.

01OF 04

No. The bytes inside are written as they were. Only the bzip2 layer is removed.

No. Ask for the format you know is inside. Anything else is refused.

The file could not be parsed. The conversion stops and no XML is produced.

One file. A BZ2 holds a single compressed file, and that file is the XML output.

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