XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
tony lattucaSubject: simple explanation on XML and DTD
Author: tony lattuca
Date: 24 Jul 2004 08:32 PM
I usually create VOD files for servers.(movies encoded)
now the company I'm dealing with, there servers want me to fill out
an XML and DTD file. It's like a catolog or general info on the
movie ex: who has the rights, actors, directors, length of movie etc...

I already have a sheet to fill out, is it easy as filling in the blanks?


finally, I received a server error 3004(meaning no metadata present)

is there any way of testing my movie with this software?

sorry to sound confused but the the techs aren't giving me the time
of day!

XML and DTD relationship?

thanks,

Postnext
Ivan PedruzziSubject: simple explanation on XML and DTD
Author: Ivan Pedruzzi
Date: 25 Jul 2004 12:07 PM
Hi Tony

My guess is that you employer should provide a schema file (DTD) that describes how a XML document structure looks like.
Using that schema you should create a XML document with the information required.

Here you can find basic tutorials on

XML
http://www.w3schools.com/xml/default.asp

DTD
http://www.w3schools.com/dtd/default.asp

Hope this helps
Ivan

Postnext
tony lattucaSubject: simple explanation on XML and DTD
Author: tony lattuca
Date: 25 Jul 2004 07:11 PM
So I do have a DTD file, do I fill up the DTD or leave as is?
it also came in with an XML form, is it just fill in the blanks
and save as?

finally, what does this have to do with servers? is like a library
and this is how they call up the movie?

I can email you the XML and DTD file?

thanks

Postnext
tony lattucaSubject: simple explanation on XML and DTD
Author: tony lattuca
Date: 28 Jul 2004 07:54 PM
a great understanding, thanks guys, my client sent me a
DTD file and an XML file(sample). do I have to fill
out the DTD or leave it as is?
this is the DTD:


<!-- DTD for Package-->
<!--Pegasus Asset Distrubution Interface version 1.0-->
<!-- <!ENTITY amp "&#38;#38;"> -->
<!ELEMENT ADI (Metadata, Asset* )>
<!ELEMENT Asset ( Metadata, Asset*, Content?)>
<!ELEMENT Metadata (AMS, App_Data*)>
<!ELEMENT AMS (#PCDATA)>
<!ATTLIST AMS
Asset_Name CDATA #REQUIRED
Provider CDATA #IMPLIED
Product CDATA #IMPLIED
Relative_Path CDATA #IMPLIED
Version_Minor CDATA #REQUIRED
Version_Major CDATA #REQUIRED
Description CDATA #REQUIRED
Creation_Date CDATA #IMPLIED
>
<!ELEMENT App_Data (#PCDATA)>
<!ATTLIST App_Data
App CDATA #REQUIRED
Name CDATA #REQUIRED
Value CDATA #REQUIRED
>
<!ELEMENT Content (#PCDATA)>
<!ATTLIST Content
Value CDATA #REQUIRED

Postnext
tony lattucaSubject: simple explanation on XML and DTD
Author: tony lattuca
Date: 28 Jul 2004 08:50 PM
finally this is the beginning of my XML :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ADI SYSTEM 'ADI.DTD'>
<ADI>
<Metadata>

does this means it's associated with a DTD?

thanks

Postnext
Alberto MassariSubject: simple explanation on XML and DTD
Author: Alberto Massari
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

Postnext
tony lattucaSubject: simple explanation on XML and DTD
Author: tony lattuca
Date: 29 Jul 2004 11:41 AM
actually the XML is already written for me, I just copied the first
5 lines. When I have the XML and I don't associate the DTD to it,
I get validation errors, and I don't get a internet explorer preview.
But as soon as I associate the the DTD it works!(easy software)
validates perfectly and I also get an explorer preview.

So basically I never touch the DTD that's given to me,ust have to
associate with the XML I'm filling out.

Finally the last sentences of my XML lists a picture,(BMP) the picture
came with XML and DTD, I can view with other softwares, Shoouldn't I
be able to view it with the Explorer preview?

thanks again

Posttop
Alberto MassariSubject: Re: simple explanation on XML and DTD
Author: Alberto Massari
Date: 30 Jul 2004 01:05 PM
Hi Tony,

>Finally the last sentences of my XML lists a picture,(BMP) the picture
>came with XML and DTD, I can view with other softwares, Shoouldn't I
>be able to view it with the Explorer preview?

It depends on what is the preview doing; as you are saying that such a
preview doesn't work unless you associate the XML with the DTD, I guess you
are referring to browsing what you have submitted on the customer's web
site. In this case, it's up to who wrote the web server code to pick up the
name of the picture and build an HTML IMG tag.
You could also make a test by submitting a JPEG or PNG image, instead of a BMP.

Hope this helps,
Alberto



 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.