NO matching global declaration for validation root

INVALID_METADATA_DATA: invalid metadata data: Element ‘mrss’: No matching global declaration available for the validation root. at line 1 [ update transformXslt 1234 ]

I am getting the above error while uploading this xml data for my media entry … Can anyone help me resolving this error and tell me a way to upload custom metadata to entry through kaltura api.

This is my xml data.

Hello @Arpit1596,

Here’s an example:

<mrss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        <channel>
                <item>
                        <action>update</action>
                        <entryId>ENTRY_ID</entryId>

                        <customDataItems>
                            <customData metadataProfileId="PROFILE_ID" metadataProfile="PROFILE_NAME">
                                <xmlData>
                                    <metadata>
                                            <FIELD_NAME>some value</FIELD_NAME>
                                    </metadata>
                                </xmlData>
                            </customData>
                        </customDataItems>
                </item>

        </channel>
</mrss>

As for using the API, see https://developer.kaltura.com/workflows/Enrich_and_Organize_Metadata/Working_with_metadata

Thanks for the help.