Skip to main content
Known Participant
July 3, 2007
Question

E4X question

  • July 3, 2007
  • 1 reply
  • 470 views
Is there a document around that specifies precisely what parts of E4X are and
are not supported?

I am trying to work with XMP data via E4X and I'm not having any luck. I thought
at first I was doing something wrong. A simple test case was this

var xmpdom = ( text from a PS generated XMP file);
xmpdom.*::RDF;

This generates an syntax error in CS3 but works fine in Firefox.

Is namespace support busted?

Is there any sample code floating around showing how to use the mini-E4X support
to work with XMP data?

-X
This topic has been closed for replies.

1 reply

dfranzen_camera_raw
Adobe Employee
Adobe Employee
July 5, 2007
X,<br /><br />The JavaScript Tools Guide in the Bridge CS3 SDK includes documentation on the XML object. See chapter 9 "Integrating XML into JavaScript"<br /><br />You can download the Bridge CS3 SDK from here:<br /><br />http://www.adobe.com/devnet/bridge/<br /><br />But if you are working with XMP I recommend using the XMPMeta object from the XMPScript API instead of the XML object. See chapter 10, "Scripting Access to XMP Metadata".<br /><br />XMP's XML serialization uses RDF and with RDF there's more than one way to say the same thing in XML; non-identical XML may represent identical RDF data models. The XMPMeta object will gives you a direct interface to the XMP data model.<br /><br />For example, the "Rating" property in the XMP Core schema may be serialized as an element child of an <rdf:Desciption> element: <xap:Rating>0</xap:Rating> or as an attribute of an <rdf:Description> element: xap:Rating="2". They mean exactly the same thing in RDF XMP.<br /><br />-David Franzen<br />Adobe Bridge Quality Engineer<br />Adobe Systems, Inc.
_xbytor_Author
Known Participant
July 5, 2007
David_Franzen@adobeforums.com wrote:

> But if you are working with XMP I recommend using the XMPMeta object from the XMPScript API instead of the XML object. See chapter 10, "Scripting Access to XMP Metadata".
>
> XMP's XML serialization uses RDF and with RDF there's more than one way to say the same thing in XML; non-identical XML may represent identical RDF data models. The XMPMeta object will gives you a direct interface to the XMP data model.
>

Unfortunately for me, the XMPScript dll cannot be loaded into Photoshop, which
is where I really need the metadata. I would prefer to _not_ call Bridge from PS
just to get metadata without rendering the image.

Thanks for the info, though.

-X