XML Converter
Reading time ~2 minutes
XML Converter is provided for connecting 3rd 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 the specific purposes and is not being further developed. We recommend using the proper 3rd 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 sapmles from our GitHub repository, where:
-
XmlConverter.exe – the XML Converter executable file;
-
template.XML – template of the output file;
-
source.XML – source XML file from which template values are read;
-
output.xml – output file.
How It Works
Converter reads template XML, looks for the special template parameters like “[[ XXX ]]", and these parameters are then replaced with the 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