Skip to content

How to debug "Error: XMP Toolkit error 201: Error in XMLValidator" #3018

Answered by clanmills
bellomo asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is caused by the invalid XMP, which is written in XML. You can extract the raw XMP using the option -pX and validate it with xmllint.

505 rmills@macbookpro:~ $ exiv2 -pX https://clanmills.com/Stonehenge.jpg | xmllint -pretty 2 -
<?xml version="1.0"?>
<?xpacket
begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta
    xmlns:x="adobe:ns:meta/"
    x:xmptk="XMP Core 4.4.0-Exiv2"
  > <rdf:RDF
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    > <rdf:Description
        xmlns:xmp="http://ns.adobe.com/xap/1.0/"
        xmlns:cm2e="http://clanmills.com/exiv2/"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        rdf:about=""
        xmp:Rating="0"
        xmp:Mo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clanmills
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants