login about faq

Iptc4xmpLocationCreated is apparently a bag of structured properties. ie. Unlike CreatorContactInfo, you need to make a bag which contains the structured properties.

But as far as I can see, you can only create a bag from a string array. (???)

Do you have any samples adding a Iptc4xmpExt:LocationCreated structure?

Thanks, otherwise the XMP/XML is working great.

asked Sep 21 '15 at 19:32

kryptomanic's gravatar image

kryptomanic
11


Thanks this helped greatly. For Objective C, the result doesn't work as is. The sample code created the below in the XMP XML: Note the TWO rdf:parseType="Resource" in the rdf:Bag tag. Photoshop 2015 CC didn't like this XML. No error, just ignored it and removed it from the raw data.

I fixed it by rewriting the add "rdf:li" to use NewChild and return the XML object, instead of NewChild2, and adding attribute and nodes with that.

Thanks again. Got me over the hump.


       <Iptc4xmpExt:LocationCreated>
            <rdf:Bag rdf:parseType="Resource" rdf:parseType="Resource">
                <rdf:li>
                    <Iptc4xmpExt:City>Ville création photo</Iptc4xmpExt:City>
                    <Iptc4xmpExt:CountryName>Nom diu pays de la photo</Iptc4xmpExt:CountryName>
                    <Iptc4xmpExt:ProvinceState>Département; Photo</Iptc4xmpExt:ProvinceState>
                    <Iptc4xmpExt:Sublocation>Lieu création photo</Iptc4xmpExt:Sublocation>
                </rdf:li>
                <rdf:li>
                    <Iptc4xmpExt:City>2 Ville création photo</Iptc4xmpExt:City>
                    <Iptc4xmpExt:CountryName>2 Nom diu pays de la photo</Iptc4xmpExt:CountryName>
                    <Iptc4xmpExt:ProvinceState>2 Département; Photo</Iptc4xmpExt:ProvinceState>
                    <Iptc4xmpExt:Sublocation>2 Lieu création photo</Iptc4xmpExt:Sublocation>
                </rdf:li>
            </rdf:Bag>
        </Iptc4xmpExt:LocationCreated>`
link

answered Sep 25 '15 at 16:40

kryptomanic's gravatar image

kryptomanic
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59
×10

Asked: Sep 21 '15 at 19:32

Seen: 565 times

Last updated: Sep 25 '15 at 16:40

powered by OSQA