StackOverflow atom feed for use with VS2008 start page

Is there a url for StackOverflow that I can use on the VS start page instead of the updated MS page? The URL that VS uses can be set in the Tools-> Options :: Startup dialog box.

I tried https://stackoverflow.com/feeds VS complaints with the following error:

The current news feed may not be a valid RSS feed or your internet connection may not be available. To change the news feed, on the Tools menu, click "Options," then expand Environment and click "Run."

+3
source share
4 answers

, https://stackoverflow.com/feeds , rss, , , , VS.

, rss.

+2
+2

.

php-.

​​ RSS , xsl, : http://atom.geekhood.net/, : http://atom.geekhood.net/atom2rss.xsl

, VS :

<link xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" rel="replies" type="application/atom+xml" href="http://stackoverflow.com/feeds/question/204696/answers" thr:count="5" />

, , :

<!-- copy extensions -->
<x:template match='*'>
    <x:comment>Unknown element <x:value-of select="local-name(.)"/></x:comment>
<!--    
    <x:copy>
        <x:copy-of select='node()|@*'/>
    </x:copy>
-->
</x:template>

php php- :

<?php

$url=$_GET['url'];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch);
curl_close($ch);

$chan = new DOMDocument(); 
$chan->loadXML($content);  
$sheet = new DOMDocument(); 
$sheet->load('atom2rss.xsl'); 
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStylesheet($sheet);
$result = $processor->transformToXML($chan); 

echo $result;

?>

atom2rss.xsl , php.

VS URL- :

http://yourserver.com/file.php?http://stackoverflow/feeds

yourserver.com - , file.php - php ...

RSS- Stackoverflow.com Visual Studio, , , .

, PHP5 php_curl.dll php_xsl.dll .

Enjoy

+2

RSS- : https://stackoverflow.com/feeds

. , , ATOM, RSS-, ! FeedBurner, RSS, VS . , FeedBurner XML , VS !

. , VS (, - ), , , , - , SO- - - .

Change again . This may be due to encoding. Hmmm ...

0
source

Source: https://habr.com/ru/post/1698274/


All Articles