Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Read XMP subpacket?

Guru ,
Jul 13, 2011 Jul 13, 2011

Is there such a thing? I have an XMP array that I can iterate over and get the 'top level' value strings I want no problem… Here is my issue when the element I want is a 'subpacket' I can't find any methods to access this? Is this straight forward and I've overlooked something obvious to those versed in XMP (Im a noob at this as you will see… Eg:

<xmpMM:Manifest>   <rdf:Seq>     <rdf:li rdf:parseType="Resource">       <stMfs:linkForm>EmbedByReference</stMfs:linkForm>       <stMfs:reference rdf:parseType="Resource">         <stRef:filePath>/Users/marklarsen/Desktop/Gent Mag/image001.tif</stRef:filePath>       </stMfs:reference>     </rdf:li>   </rdf:Seq> </xmpMM:Manifest>

'Manifest' is actually a much longer array but… What I have no issue with is getting property 'stMfs:linkForm' where Im falling over is how do you get 'stRef:filePath' xmp.get.property() does not appear to work? I've tried numerous ways now with no luck so I need to ask… Can't afford to beat any more kit to death or throw keyboard down the garden… TVM

TOPICS
Scripting
754
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 13, 2011 Jul 13, 2011

Have you got a complete example that I could have a go at Mark?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 16, 2011 Jul 16, 2011
LATEST

Paul, I've marked this helpful for the PM… I could not find the ideal solution but for now went the route of serializing the whole xmp to string the just search that… The script is working as I wished now… Sorted the PC paths side of things too so many thanks for the help…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines