Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Apple Final Cut Pro Anyone know how to fix XML DTD validation import issues?

  • Anyone know how to fix XML DTD validation import issues?

    Posted by Tangier Clarke on February 18, 2015 at 6:17 pm

    I ran into an issue where a project’s XML would not import giving the following error below. Another post suggests that it’s a transition problem. Question I have to find is how do you fix it?

    DTD validation failed. (Element transition content does not follow the DTD, expecting (filter-video? , filter-audio? , (marker | chapter-marker | rating | keyword | analysis-marker)* , metadata? , reserved?), got (filter-video filter-audio spine )
    Element transition content does not follow the DTD, expecting (filter-video? , filter-audio? , (marker | chapter-marker | rating | keyword | analysis-marker)* , metadata? , reserved?), got (filter-video filter-audio spine )
    )

    Tangier

    Jared Jacobsen replied 6 years, 11 months ago 7 Members · 11 Replies
  • 11 Replies
  • Charlie Austin

    February 19, 2015 at 2:14 am

    Duplicate the XML file… open the copy, ideally BBEdit or Text Wrangler, but TexEdit will work. Search for the bad results “filter-video filter-audio spine” and delete the line(s) they’re in. Save it and try to import again. you’ll lose whatever they were, but it may open…

    ————————————————————-

    ~ My FCPX Babbling blog ~
    ~”It is a poor craftsman who blames his tools.”~
    ~”The function you just attempted is not yet implemented”~

  • Andreas Kiel

    February 19, 2015 at 3:29 pm

    Hi Taylor,

    It might be not that easy as described.
    Feel free to send me the XML and I’ll have a look (I work with XMLs a lot of times)
    kiel at spherico dot com

    – Andreas

    Spherico
    https://www.spherico.com/filmtools

    “He who fights with monsters should be careful lest he thereby
    become a monster. And if thou gaze long into an abyss, the abyss will
    also gaze into thee.” – Friedrich Nietzsche, Beyond Good and Evil

  • Charlie Austin

    February 20, 2015 at 2:30 am

    [Andreas Kiel] “It might be not that easy as described.”

    Most likely correct, just a shot in the dark on my part. BBEdit can be quite dangerous in my hands. 😉

    ————————————————————-

    ~ My FCPX Babbling blog ~
    ~”It is a poor craftsman who blames his tools.”~
    ~”The function you just attempted is not yet implemented”~

  • Tangier Clarke

    February 20, 2015 at 2:59 am

    I’ll give it a try with Text Wrangler and report back.

    T

    Tangier

  • Tangier Clarke

    February 24, 2015 at 6:28 pm

    Tried going through the XML doc in TextWrangler, but couldn’t identify the problem.

    Tangier

  • Tangier Clarke

    February 24, 2015 at 7:20 pm

    Problem solved folks! Thanks to Andreas Kiel who helped me resolve the issue.

    Here’s a transition in the XML

    "<transition name="Cross Dissolve" offset="0s" duration="24024/24000s">
    <filter-video ref="r486" name="Cross Dissolve"/>
    <filter-audio ref="r487" name="Audio Crossfade"/>
    <spine lane="1" offset="86423337/24000s"/>
    </transition>"

    Once every instance (there were two) of lines inside a transition that looked like “” was removed (because the transition XML key should not have a spine key) the XML imported without issue.

    Tangier

  • Andreas Kiel

    February 25, 2015 at 4:50 am

    Just for the records – in case some somebody else will run into a similar problem.

    DTD validation failed. (Element transition content does not follow the DTD, expecting (filter-video? , filter-audio? , (marker | chapter-marker | rating | keyword | analysis-marker)* , metadata? , reserved?), got (filter-video filter-audio spine )
    Element transition content does not follow the DTD, expecting (filter-video? , filter-audio? , (marker | chapter-marker | rating | keyword | analysis-marker)* , metadata? , reserved?), got (filter-video filter-audio spine )
    )

    The first underlined part shows the element where the error occurs. The parts between this and the second underlined part show the options or what is expected (though they are vague). The second underlined part starting with “got” shows what is found.
    So in this case you have to search for a transition element which includes “spine”.

    If FCPX creates a XML like Tangier’s you should file a bug to Apple.

    – Andreas

    Spherico
    https://www.spherico.com/filmtools

    “He who fights with monsters should be careful lest he thereby
    become a monster. And if thou gaze long into an abyss, the abyss will
    also gaze into thee.” – Friedrich Nietzsche, Beyond Good and Evil

  • Ivan Barra

    November 29, 2016 at 9:28 pm

    So you deleted the entire portion of code you have listed? Thanks in advance! Having the same issue as I type!

  • Rowena Megan

    October 12, 2017 at 5:50 am

    Hi Andreas,
    Help please!! I just bought PluralEyes and am struggling….
    I am getting this message when trying to export an XML from PluralEyes to FCPX:
    The XML document sent from application “PluralEyes 4” could not be imported.
    DTD validation failed. (Element asset-clip content does not follow the DTD, expecting (note? , (conform-rate? , timeMap?) , ((adjust-crop? , adjust-corners? , adjust-conform? , adjust-transform? , adjust-blend? , adjust-stabilization? , adjust-rollingShutter?) , adjust-volume? , adjust-panner?) , (audio | video | clip | title | mc-clip | ref-clip | sync-clip | asset-clip | audition | spine)* , (marker | chapter-marker | rating | keyword | analysis-marker)* , audio-channel-source* , (filter-video | filter-video-mask)* ,…)

    I read above that you said I should duplicate the XML but I can’t even find it, as it sends it directly to FCPX! Where does PluralEyes store them so that I can try your trick? Does that mean I have to do this every single time I export from PluralEyes or is there a way to make PluralEyes and FCPX work better together??

    Thank you!
    Rowena

  • Ian Pringle

    December 11, 2017 at 12:48 pm

    I’m having the same issue… and wondered whether Andreas Kiel might be able to help identify which lines I need to remove in the .fcpxml file? I need to open a file that a colleague (in another country) exported in Sony Vegas (now Magix) that I can open in FCPX.

    Here’s my error message:

    DTD validation failed. (Element video content does not follow the DTD, expecting (note? , timeMap? , (info-asc-cdl? , adjust-crop? , adjust-corners? , adjust-conform? , adjust-transform? , adjust-blend?) , (audio | video | clip | title | mc-clip | ref-clip | audition | spine)* , (marker | chapter-marker)* , filter*), got (adjust-blend adjust-transform )
    Element video content does not follow the DTD, expecting (note? , timeMap? , (info-asc-cdl? , adjust-crop? , adjust-corners? , adjust-conform? , adjust-transform? , adj…)

    Any help would be much appreciated!

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy