finnstone
asked on
change xml feed properties
i am trying to hide the source generator of an XML feed
basically - want to share my feed with someone, but dont want them to see in the XML where I am creating it from (a 3rd party service)
is there a way to mask the source URL of the news items?
basically - want to share my feed with someone, but dont want them to see in the XML where I am creating it from (a 3rd party service)
is there a way to mask the source URL of the news items?
There's a potential breach of copyright unless the provider has given you permission to pass this off as your own - do you have that?
ASKER
yes
Ok then, on the understanding that its your call on the terms and conditions of the original provider. the basic principle is that you accept the incoming feed into your own RSS server, identify the tags and replace all the source details with your own server information adding any enrichment and serving it as a new feed or (in my case) an HTML page.
There are a lot of pre-cooked code items available but all will need some level of analysis of the incoming feed to see how they have used tagnames and implemented the standard according to their own needs.
I've used the libraries provided by "the art of web" with some success - but I was not adjusting the source information just amalgamating on the basis of tags and feeding a HTML window- so that will require further investigation:
http://www.the-art-of-web. com/php/rs s-example/
There are a lot of pre-cooked code items available but all will need some level of analysis of the incoming feed to see how they have used tagnames and implemented the standard according to their own needs.
I've used the libraries provided by "the art of web" with some success - but I was not adjusting the source information just amalgamating on the basis of tags and feeding a HTML window- so that will require further investigation:
http://www.the-art-of-web.
ASKER
hmm... heres the part i need to change
1) link 2)creator 3)rights and 4) admin:generator
any ideas?
code...
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>Links for rob </title>
<link>http://xyz.com/feed/4faef5d55cd85aa513000000</link>
<description>
Links
</description>
<dc:language>en</dc:langua ge>
<dc:creator>boy@xyz.com</d c:creator>
<dc:rights>Copyright Boy XXX 2010 - 2015</dc:rights>
<admin:generatorAgent rdf:resource="http://www.xyz.com/"/>
1) link 2)creator 3)rights and 4) admin:generator
any ideas?
code...
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>Links for rob </title>
<link>http://xyz.com/feed/4faef5d55cd85aa513000000</link>
<description>
Links
</description>
<dc:language>en</dc:langua
<dc:creator>boy@xyz.com</d
<dc:rights>Copyright Boy XXX 2010 - 2015</dc:rights>
<admin:generatorAgent rdf:resource="http://www.xyz.com/"/>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.