XML Converter
Reading time ~2 minutes
XML Converter is provided for connecting third-party systems, or for use in extracting arbitrary metadata from inbound source files.
Note
|
Please, keep in mind that XML Converter is a legacy tool, which is only supported for specific purposes and is not being developed further. We recommend using the proper third-party Command Line Transformation utility to transform source XML into FIDEF format. |
An example of XML Converter usage is to extract metadata embedded within MXF files, which can then be mapped to the sidecar FIDEF (file definition) XML that will set metadata for input files inside Cinegy.
The tool is expected to be used in a compound script within Cinegy Convert custom pre-execution processing scripts.
Tool Usage
You can download the XML Converter tool along with XML samples from our GitHub repository, where:
-
XmlConverter.exe – an XML Converter executable file;
-
template.XML – a template of an output file;
-
source.XML – a source XML file from which template values are read;
-
output.xml – an output file.
How It Works
The Converter reads template XML, looks for special template parameters like “[[ XXX ]]", and then these parameters are replaced with corresponding values from the source XML.
Samples
Input XML:
<SOME>
<LONG>
<XML TO="TEST0">XML VALUE0</XML>
<XML TO="TEST1">XML VALUE1</XML>
<XML TO="TEST2"/>
</LONG>
<SIMPLE>SOME SIMPLE TEXT</SIMPLE>
</SOME>
Sample queries:
XML VALUE0
XML VALUE1
TEST1
TEST2
SOME SIMPLE TEXT