Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Thu, 11 Sep 2008 07:14:58 -0700 (PDT),    group: microsoft.public.xml        back       


using xsd.exe with yahoo media rss   
Hi everyone.
I've got problem with converting xml file to xsd schema. The Xml file
looks like:
<?xml version="1.0" encoding="iso-8859-2"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Song Site</title>
<media:title type="plain">TitleOfMedia</media:title>
<link>http://www.foo.com</link>
<description>Songs galore at different bitrates</description>
       <item>
               <title>Cool song by an artist</title>
               <link>http://www.foo.com/item1.htm</link>
               <media:group>
                       <media:title type="plain">TitleOfMedia</
media:title>
                       <media:content url="http://www.foo.com/
song64kbps.mp3"
                       fileSize="1000" bitrate="64" type="audio/mpeg"
                       isDefault="true" expression="full"/>
                       <media:content url="http://www.foo.com/
song128kbps.mp3"
                       fileSize="2000" bitrate="128" type="audio/mpeg"
                       expression="full"/>
                       <media:content url="http://www.foo.com/
song256kbps.mp3"
                       fileSize="4000" bitrate="256" type="audio/mpeg"
                       expression="full"/>
                       <media:content url="http://www.foo.com/
song512kbps.mp3.torrent"
                       fileSize="8000" type="application/x-
bittorrent;enclosed=audio/
mpeg"
                       expression="full"/>
                       <media:content url="http://www.foo.com/
song.wav"
                       fileSize="16000" type="audio/x-wav"
expression="full">
                       <media:credit role="musician">band member 1</
media:credit>
                       <media:credit role="musician">band member 2</
media:credit>
                       <media:category>music/artist name/album/song</
media:category>
                       <media:rating>nonadult</media:rating>
                       <media:title type="plain">TitleOfMedia</
media:title>
                       </media:content>
               </media:group>
       </item>
</channel>
</rss>

When I'm trying to convert this there seems to be a problem with
names, because when he changing this the name "media:title" is saved
as "title", so there'll be always problem with this because we got
already element name "title". does anybody knows how to fix it??
Please! :)
Konrad
date: Thu, 11 Sep 2008 07:14:58 -0700 (PDT)   author:   Konrad

Re: using xsd.exe with yahoo media rss   
I'm having a problem with the "name:identifier" element syntax myself today 
specifically atom:link that the validators are recommending we use for 
<link> elements in the channel and presumably in <item> elements. What 
writer do you use to generate the name:identifier syntax?


"Konrad"  wrote in message 
news:8e28a83c-c593-4d8c-9ab8-0e3bda402d63@e39g2000hsf.googlegroups.com...
> Hi everyone.
> I've got problem with converting xml file to xsd schema. The Xml file
> looks like:
> <?xml version="1.0" encoding="iso-8859-2"?>
> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
> <channel>
> <title>Song Site</title>
> <media:title type="plain">TitleOfMedia</media:title>
> <link>http://www.foo.com</link>
> <description>Songs galore at different bitrates</description>
>       <item>
>               <title>Cool song by an artist</title>
>               <link>http://www.foo.com/item1.htm</link>
>               <media:group>
>                       <media:title type="plain">TitleOfMedia</
> media:title>
>                       <media:content url="http://www.foo.com/
> song64kbps.mp3"
>                       fileSize="1000" bitrate="64" type="audio/mpeg"
>                       isDefault="true" expression="full"/>
>                       <media:content url="http://www.foo.com/
> song128kbps.mp3"
>                       fileSize="2000" bitrate="128" type="audio/mpeg"
>                       expression="full"/>
>                       <media:content url="http://www.foo.com/
> song256kbps.mp3"
>                       fileSize="4000" bitrate="256" type="audio/mpeg"
>                       expression="full"/>
>                       <media:content url="http://www.foo.com/
> song512kbps.mp3.torrent"
>                       fileSize="8000" type="application/x-
> bittorrent;enclosed=audio/
> mpeg"
>                       expression="full"/>
>                       <media:content url="http://www.foo.com/
> song.wav"
>                       fileSize="16000" type="audio/x-wav"
> expression="full">
>                       <media:credit role="musician">band member 1</
> media:credit>
>                       <media:credit role="musician">band member 2</
> media:credit>
>                       <media:category>music/artist name/album/song</
> media:category>
>                       <media:rating>nonadult</media:rating>
>                       <media:title type="plain">TitleOfMedia</
> media:title>
>                       </media:content>
>               </media:group>
>       </item>
> </channel>
> </rss>
>
> When I'm trying to convert this there seems to be a problem with
> names, because when he changing this the name "media:title" is saved
> as "title", so there'll be always problem with this because we got
> already element name "title". does anybody knows how to fix it??
> Please! :)
> Konrad
date: Thu, 11 Sep 2008 12:33:03 -0500   author:   Hillbilly

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us