Export an object library to XML

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 13:19

There's not yet a definitive and simple way to export an object library to load it on another system (creation of a dedicated workflow is pending).

A temporary solution is to export with srv4 or cmd4 (all code must go in one line, here it is shown in more lines just for the better readability).

Click to toggle expandsrv4 code
Click to toggle expandcmd4 code

This exports library and library objects from the sysdefault library in the same file. To export another library, replace the sysdefault name with another name.

Before reimporting the exported file with srv4/cmd4, edit the file, remove ids and change the keyval value under objectType="title" (there are many occurences in the file) to the appropriate title name.

Note

You may want to edit the export option putting DataFiles="false" so the xml will contains also the thumbs of the library objects.

Code of exp_options.xml

<opt:XmlExportOptions

  xmlns:opt="http://www.teradp.com/schemas/GN4/1/XmlExportOptions.xsd"

 

  AccessStrict="false"

  MimeType="text/html" RefKeys="true"

  DataMaxSize="-1" />

The above embeds the binary data of library objects thumbnail in the XML.

See also

Import an object library from XML

Import sysdefault library in your title

XML Export Options