I have an XML file that contains metadata in the form of RDF. The file
is something like this:
<?xml version="1.0" encoding="utf-8" ?>
<xmpData>
<WavXmpInfo path="C:\...... ............... ............... .")
<rdf:RDF xmlns:rdf="http ://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Descriptio n rdf:about="" xmlns:xmpDM="ht tp://ns.adobe.com/xmp/1.0/
DynamicMedia/" xmlns:xap="http ://ns.adobe.com/xap/1.0/"
xmlns:photoshop ="http://ns.adobe.com/photoshop/1.0/"
xmlns:xapRights ="http://ns.adobe.com/xap/1.0/rights/" xmlns:dc="http://
purl.org/dc/elements/1.1/" xmpDM:audioSamp leRate="16000"
xmpDM:audioSamp leType="8-bit"
xmpDM:audioChan nelType="1"
..........
..........
..........
<dc:rights>
<rdf:Alt>
<rdf:li xml:lang="x-default">HHHHHH HHHHHHHH</rdf:li>
</rdf:Alt>
</dc:rights>
</rdf:Description >
</rdf:RDF>
</WavXmpInfo>
</xmpData>
I want to extract data such as audioSampleRate , audiosampleType etc,
so that i can insert them into a database. I'm having problems
accessing this data.
I'm using DOMXML. Can this type of data be extracted using DOMXML? If
not how would one go about accessing it?
thanks
is something like this:
<?xml version="1.0" encoding="utf-8" ?>
<xmpData>
<WavXmpInfo path="C:\...... ............... ............... .")
<rdf:RDF xmlns:rdf="http ://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Descriptio n rdf:about="" xmlns:xmpDM="ht tp://ns.adobe.com/xmp/1.0/
DynamicMedia/" xmlns:xap="http ://ns.adobe.com/xap/1.0/"
xmlns:photoshop ="http://ns.adobe.com/photoshop/1.0/"
xmlns:xapRights ="http://ns.adobe.com/xap/1.0/rights/" xmlns:dc="http://
purl.org/dc/elements/1.1/" xmpDM:audioSamp leRate="16000"
xmpDM:audioSamp leType="8-bit"
xmpDM:audioChan nelType="1"
..........
..........
..........
<dc:rights>
<rdf:Alt>
<rdf:li xml:lang="x-default">HHHHHH HHHHHHHH</rdf:li>
</rdf:Alt>
</dc:rights>
</rdf:Description >
</rdf:RDF>
</WavXmpInfo>
</xmpData>
I want to extract data such as audioSampleRate , audiosampleType etc,
so that i can insert them into a database. I'm having problems
accessing this data.
I'm using DOMXML. Can this type of data be extracted using DOMXML? If
not how would one go about accessing it?
thanks