Difference between revisions of "M3F example"

From XiphWiki
Jump to navigation Jump to search
(Extending the example.)
(remove <pre> as it messed up the codeblock rendering, use source lang = xml for pretty colours!)
 
Line 1: Line 1:
 
Full example of a [[M3F|Multimedia Metadata Format]] file.
 
Full example of a [[M3F|Multimedia Metadata Format]] file.
  
<code><pre><?xml encoding="UTF-8" version="1.0"?>
+
<source lang="xml">
 +
<?xml encoding="UTF-8" version="1.0"?>
 
<metadata xmlns="http://xmlns.xiph.org/metadata/0.1/">
 
<metadata xmlns="http://xmlns.xiph.org/metadata/0.1/">
 
<resource oggserial="0×EXAMPLE" type="video/theora" xml:lang="eng" xml:id="example-movie">
 
<resource oggserial="0×EXAMPLE" type="video/theora" xml:lang="eng" xml:id="example-movie">
Line 49: Line 50:
 
</rights>
 
</rights>
 
</resource>
 
</resource>
</metadata></pre></code>
+
</metadata>
 +
</source>

Latest revision as of 04:36, 24 June 2016

Full example of a Multimedia Metadata Format file.

<?xml encoding="UTF-8" version="1.0"?>
<metadata xmlns="http://xmlns.xiph.org/metadata/0.1/">
	<resource oggserial="0×EXAMPLE" type="video/theora" xml:lang="eng" xml:id="example-movie">
		<title>The Science of Sleep</title>
		<title xml:lang="deu">Anleitung zum Träumen</title>
		<title xml:lang="ita">La science des rêves</title>
		<tagline>Close your eyes. Open your heart.</tagline>
		<audience context="artistic" language="mild" sexual="sexact"/>
		<encoding>
			<date>2010-01-21T23:41:2+0100</date>
			<source media="dvd" uri="http://www.imdb.com/title/tt0354899/"/>
			<software title="Theora Maker" version="1.2" uri="http://example.tld/theoramaker/"/>
		</encoding>
		<performers>
			<person>
				<name>Gael García Bernal</name>
				<actor portrait="Stéphane Miroux"/>
			</person>
			<person>
				<name>Charlotte Gainsbourg</name>
				<actor portrait="Stéphanie"/>
			</person>
			<person>
				<name>Emma de Caunes</name>
				<actor portrait="Zoé"/>
			</person>
			<person>
				<name>Alain Chabat</name>
				<actor portrait="Guy"/>
			</person>
			<person>
				<name>Michel Gondry</name>
				<director/>
				<writer/>
			</person>
			<organisation uri="http://partizan.com/">Partizan</organisation>
		</performers>
		<recording>
			<date>2006-08-26</date>
			<duration>:01:45:16:</duration>
			<location>Italy</location>
			<location>France</location>
		</recording>
		<rights>
			<date>2006-08-26</date>
			<license>© 2006 Partizan. All distribution rights reserved.</license>
		</rights>
	</resource>
</metadata>