22.Exporting Medias to XML in MediaLibrary 1.5.x Shop

MediaLibrary has options to export your Medias to CSV, XML and MySQL. In this article we will explain the XML Export and its results.



XML Explanation


The Extensible Markup Language (XML) is a general-purpose specification for creating custom markup languages. Extensible because it allows its users to define their own elements. Its primary purpose is to help information systems share structured data, particularly via the Internet, and it is used both to encode documents and to serialize data. It is designed to be relatively human-legible.


Read more on XML on Wikipedia.



XML Export in MediaLibrary 1.5.x Shop


In the Admin backend, go to [Components] - [MediaLibrary] - [Import/Export] and then click on the [Export] tab.

With the dropdown boxes, choose XML as the Export Type and the Category to export from.

 MediaLibrary import/export - export

 

Now click the [Export Medias] button in the top bar.

 MediaLibrary Export result



You will see the following page:

By clicking on the link, you can save the export file you just made to your local workstation. Change the name to reflect the category you are exporting:

XML Export from MediaLibrary 1.5.x Shop

The XML file export can be opened with an appropriate text editor or XML editor of your choice and edited for subsequent import. Since XML files are quite human-readable, this is an excellent option. In the following screenshot we have opened the just exported XML file in PSPad, which is a fine freeware editor for Windows which supports ANSI, UTF-8 and has many cool options:


PSPad is highly recommended and available from http://www.pspad.com/

Make regular backups of your Medias

It is a good idea to do exports of your Media categories every now and to keep them safe somewhere as a backup.

This is certainly a good plan before changing MediaLibrary version for example with an upgrade. With a small note of your Media Category names and these exports, you can always restore your MediaLibrary content easily.

We recommend exports to XML for this because:

They will contain all fields from your Media Library, including Media

Descriptions and User Reviews

They will give you the most flexible output (you can decide to later import into different categories, for example)

They are totally database structure independent, so if there any changes in the MediaLibrary database tables structure in a later version (which may happen when new functionality is added), then with XML exports available it will not ruin the effectiveness of your subsequent imports.


For Full XML export please save all images covers and eMedia files from folder: {yours site}/components/com_medialibrary/emedia/ and {yours site}/components/com_medialibrary/covers/ for next restore at import time

 



What are you looking for?
Anti-spam question: How many eyes has a typical person?