Parse Adob XMP data with Rev's XML lib?
Sivakatirswami
katir at hindu.org
Wed Aug 22 23:49:24 EDT 2007
I am unable to parse the following using rev's library.
I'm not an xml expert... but, since several nodes all begin with
"rdf" I assume we need to refer to a node like this:
put revXMLNodeContents(tMetaData,
"/x:xmpmeta/rdf:RDF/rdf:Description/dc:description/rdf:Alt/rdf:li/")
but rev throw and error "xmlerr, can't find element"
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Public XMP Toolkit Core 4.0">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">Caption can be found
here</rdf:li>
</rdf:Alt>
</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
In the meantime i can hack this by removing all tags as there is not
data except the caption
in any of the nodes
TIA
Sivakatirswami
www.himalayanacademy.com
More information about the use-livecode
mailing list