Download Manual

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In order for your replacement to succeed, your XML file must comply with our internal schema. Format your XML file according to the schema in the sample file below.


To ensure your replacement is successful, you must format your XML file similarly to the one below:

Sample XML file
<?xml version="1.0" encoding="UTF-8" ?>
<replace xmlns="http://schemas.video-cdn.net/vmpro/public/v1/ingest/ftp/replace.xsd">
    <source>
        <file>new_video.mp4</file>
    </source>
    <videoId>EaxGum-r_cMRsggTC5eM7i6qU</videoId>
</replace>


When uploading your XML file, we check against our internal validation schema (shown below).

Internal XML Validation Schema
<?xml version="1.0" encoding="UTF-8" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://schemas.video-cdn.net/vmpro/public/v1/ingest/ftp/replace.xsd"
        elementFormDefault="qualified">
    <element name="replace">
        <complexType>
            <all>
                <element name="source" minOccurs="1" maxOccurs="1">
                    <complexType>
                        <all minOccurs="1" maxOccurs="1">
                            <element name="file" minOccurs="1" maxOccurs="1">
                                <simpleType>
                                    <restriction base="string">
                                        <minLength value="1"/>
                                        <pattern value="[^/\\]+"/>
                                    </restriction>
                                </simpleType>
                            </element>
                        </all>
                    </complexType>
                </element>
                <element name="videoId" type="string" minOccurs="1" maxOccurs="1"/>
            </all>
        </complexType>
    </element>
</schema>