473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Embedding custom XML into XMP

If I want to embed my own XML inside XMP, as far as I can tell, I should
do something like this:

<?xpacket begin="" id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description xmlns:my="http://www.my.com/rdf:about="">
<my:Envelope rdf:parseType="Literal">
<foo bar="baz">anything I want</foo>
</my:Envelope>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>

Yet when I embed such XML inside a TIFF file having tag 700 and open the
TIFF with Photoshop, Photohop complains that the information is wrong (but
doesn't say specifically what) and ignores it.

So how can I embed any XML I want inside an XMP packet?

- Paul
Jan 31 '07 #1
4 1719
Paul J. Lucas <pa*******************@removethistoo.mac.comwrot e:
>
<rdf:Description xmlns:my="http://www.my.com/rdf:about="">
Yes, I know that should be:
<rdf:Description xmlns:my="http://www.my.com/" rdf:about="">
The original example was just a bad copy/paste job. The actual XML is
correct.

- Paul
Jan 31 '07 #2
On 31 Jan, 16:53, pauljlucas.removet...@removethistoo.mac.com (Paul J.
Lucas) wrote:
So how can I embed any XML I want inside an XMP packet?
I don't think you can. XMP is a very-much subsetted RDF and it doesn't
like anything beyond a simple list of properties, certainly not any
sort of structured graph. As a result I've never really bothered with
it and sadly can't help further. Adobe do have a good specification of
it out on the web though and AFAIR they're quite specific about what
you can and can't do.

Jan 31 '07 #3
On 31 Jan, 20:32, pauljlucas.removet...@removethistoo.mac.com (Paul J.
Lucas) wrote:
So how can I embed any XML I want inside an XMP packet?
I don't think you can.
Then explain this:
http://www.w3.org/TR/rdf-primer/#xmlliterals

The example shows arbitrary XHTML embedded inside the dc:title element.
Lovely. That's RDF not XMP. Like I said, XMP only supports a _subset_
of RDF. That's one of the main reasons why I see XMP as a trivial
irrelevance to anything I work on. If I deal with it, it will only be
as an obsolete minor export format (like RSS 2.0) that I down-convert
into from the real data model.

Read the XMP SDK (download from Adobe)
In particular, p28 of XMPSpecification.pdf

:RDF Issues
:Unsupported Features
:XMP uses a subset of RDF. Valid XMP is limited to the RDF described
in the previous
:sections, along with all equivalent alternate forms of that RDF.
:[...]
:● The rdf:parseType='Literal' attribute is not supported.

Feb 1 '07 #4
In article <11**********************@a34g2000cwb.googlegroups .com>,
di*****@codesmiths.com says...
Lovely. That's RDF not XMP. Like I said, XMP only supports a _subset_
of RDF. That's one of the main reasons why I see XMP as a trivial
irrelevance to anything I work on. If I deal with it, it will only be
as an obsolete minor export format (like RSS 2.0) that I down-convert
into from the real data model.
So, if I were creating a standard, then allowing XMP to be used to
provide information about images would be wise but allowing only XMP and
nothing else would be unwise?
Feb 2 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
5
by: Victor Fees | last post by:
I have an XML string in a database that I would like to display using XSLT. All of that works like a champ, but I can't figure out how to embed the XML inside an ASPX page. For example, I have...
8
by: Alan Lue | last post by:
Hi, I'm trying to set up a webpage so that I can view multiple HTML files from the same page. For example, you might go to http://example.com/lab_tests.html and be able to view lab1.html,...
0
by: Sanjay Tibrewal | last post by:
Hello, I am trying out a piece of code I downloaded from a link on msdn site. It's a server menu generating control that I tried to add to my custom control assembly. I was able to compile the...
2
by: Dursun | last post by:
Is it possible to embed Visio into a Windows Form in VB.NET? So that we can have the end user draw free form graphics and save them within a single Windows application that we developed. Thank you...
0
by: hq4000 | last post by:
Given AStyleSheet.xsl : <AStyleSheet> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.mytest.mytest2.mytest3.com" version="1.0"> <xsl:output method="xml"...
1
by: Dominic via DotNetMonster.com | last post by:
With a little help from someone in this forum, I am currently creating forms and then embedding them into tabpages, so that I get a display similar to Lotus Notes. I have one container window, so I...
1
by: Dominic via DotNetMonster.com | last post by:
With a little help from someone in this forum, I am currently creating forms and then embedding them into tabpages, so that I get a display similar to Lotus Notes. I have one container window, so I...
3
by: John Pye | last post by:
Hi all I have been working on some new code that embeds python in an C application. The embedding is working fine under Linux but crashing under Windows (XP) when I reach the following step. ...
5
by: Anil Gupte | last post by:
How do I embed Windows Media Player so I can control it with VB code. I am familiar with embedding in a web page like this: *************** <embed src="Test.asx" width=320 height=300...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.