Question:
The file generated by Chilkat is failing when being loaded into PhotoShop on the Usage Right element. Specifically, this
xmlns:xmpRights=""the double quotes should contain
xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/"in order to work. When I paste in this "http://..." phrase into the Chilkat file it loads into Photoshop just fine. Is this the programmers responsibility to make sure this is getting setup properly? or is it something else?
Chilkat XMP recognizes most commonly used namespaces and will automatically add the appropriate URL. However, I found that "xmpRights" was not in the list (internal to the Chilkat XMP class). I made the change so that it's there for the next version release.
However, there is a way to work around the problem. The AddNsMapping method can be called to add a namespace-to-URL mapping.
AddNsMapping(string ns, string uri);Call this method to add the mapping from "xmpRights" to "http://ns.adobe.com/xap/1.0/rights/" so that it's automatically generated.