Parse XML/SMIL dokument
Ok, fatter minus af det her XML vs. ASP halløj.Det, jeg sidder og arbejder med, er at parse flg.:
<?xml version="1.0" ?>
<smil>
<head>
<meta name="title" content="my mms"/>
<meta name="copyright" content="InterNexium 2002"/>
<layout>
<root-layout background-color="white" width="160px" height="120px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="text" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
<region id="Image" width="160px" height="120px" left="0px" top="0px"/>
</layout>
</head>
<body>
<par dur="2000ms">
<std_time>2000</std_time>
<repeat_factor>0</repeat_factor>
<img src="A.jpg" region="Image" start="0" end="2000" frame="0" sizeX="300" sizeY="450" fit="fit"/>
</par>
<par dur="2000ms">
<std_time>2000</std_time>
<repeat_factor>0</repeat_factor>
<img src="B.jpg" region="Image" start="0" end="2000" frame="0" sizeX="500" sizeY="335" fit="fit"/>
</par>
<par dur="2000ms">
<std_time>2000</std_time>
<repeat_factor>0</repeat_factor>
<img src="C.jpg" region="Image" start="0" end="2000" frame="0" sizeX="500" sizeY="333" fit="fit"/>
</par>
</body>
</smil>
Det jeg har brug for, er at trække elementerne fra body-delen ud og kunne arbejde med dem.
Jeg skal ikke nødvendigvis bruge et færdigt script, bare en fast struktur eller evt. et guldlink, jeg kan køre videre med.
Har prøvet Google, men har ikke fundet noget rigtigt brugbart...
