|
next
|
 Subject: simple explanation on XML and DTD Author: (Deleted User) Date: 28 Jul 2004 09:41 PM
|
Hi Tony,
from what you wrote I understand that your client wants you to provide
metadata for the video files you produce. This metadata is in the XML
format, and the DTD is specifying how the XML is structured.
So, the DTD is telling that there is a root element, ADI, that has a
subelement Metadata and a list of Asset. The Metadata has the children
AMS and a number of App_Data. Finally, the AMS has a bunch of attributes
carrying the Asset_Name, the Provider, the Product and so on.
You will need from your client more informations about what data you
should enter (e.g. what is supposed to go in the Name/Value pairs of the
App_Data element?), but I can guess you should write an XML file like
this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ADI SYSTEM 'ADI.DTD'>
<ADI>
<Metadata><AMS Asset_Name="Video file" Provider="Tony"
Product="Video footage" Relative_Path="file.vod" Version_Major="1"
Version_Minor="0" Description="Nice video of falling leaves"
Creation_Date="07/28/04"></AMS>
<App_Data App="Video" Name="Length" Value="20:00"></App_Data>
<App_Data App="Audio" Name="Encoder" Value="PCM"></App_Data>
</Metadata>
</ADI>
Hope this helps,
Alberto
|
|
|
|