2012-04-19 2 views
0

RSS 피드 of a website with an embedded segment을 잡고 싶지만 할 수 없었습니다. 성질 데이터를 사용한 후에 XML을 통해 피드로 연결되었지만 유효성이 확인되지 않은 XML을 발견했습니다. 다음을 반환 한 validity of the feed을 테스트했습니다.페이지에있는 RSS 피드가 유효하지 않으나 포함 된 세그먼트로 표시됩니다.

이것은 웹 페이지이며 피드가 아닙니다. 이 페이지와 연결된 피드를 찾았지만 찾을 수 없습니다. 유효성을 검사 할 피드의 주소를 입력하십시오.

<?xml version="1.0" encoding="UTF-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:bt="http://example.com/2009/atom_extensions"> 
    <title>IDUG DB2 Tech Channel</title> 
    <id>tag:example.com,2012:channel:7637</id> 
    <bt:description>Desciption</bt:description> 
    <subtitle>Joint DB2 Tech Talk series sponsored by IDUG with IBM</subtitle> 
    <updated>2012-04-18T16:53:39Z</updated> 
    <link href="http://www.example.org" rel="alternate" type="text/html"/> 
    <link href="http://www.example.com/channel/7637/feed" rel="self" type="application/atom+xml"/> 
    <entry> 
    <id>tag:example.com,2012:communication:47115</id> 
    <title>DB2 Tech Talk: Oracle Database and PL/SQL Compatibility Features of DB2 10</title> 
    <updated>2012-05-31T16:30:00Z</updated> 
    <summary>blah blah</summary> 
    <author> 
     <name>Serge Rielau</name> 
    </author> 
    <bt:communication id="47115"/> 
    <bt:channel id="7637"/> 
    <bt:status>upcoming</bt:status> 
    <bt:format>audio</bt:format> 
    <bt:duration>5400</bt:duration> 
    <bt:start>1338481800</bt:start> 
    <bt:entryTime>1338481500</bt:entryTime> 
    <bt:closeTime>1338487500</bt:closeTime> 
    <bt:rating>0</bt:rating> 
    <link href="http://www.example.org?commid=47115" rel="alternate" type="text/html"/> 
    <link href="http://www.example.com/communication/47115/tn1_1.png" rel="enclosure" type="image/png" title="thumbnail"/> 
    <link href="http://www.example.com/communication/47115/slide1_001.png" rel="related" type="image/png" title="preview"/> 
    <link href="http://www.example.com/communication/47115/calendar/ics" rel="related" type="text/calendar" title="calendar"/> 
    <category scheme="keyword" term="DB2"/> 
    <category scheme="keyword" term="Oracle"/> 
    <category scheme="keyword" term="Database"/> 
    <category scheme="keyword" term="PL/SQL"/> 
    <category scheme="keyword" term="compatibility"/> 
    <category scheme="keyword" term="SQL"/> 
    </entry> 
    ... 
</feed> 

왜이 유효한 RSS 피드되지 않습니다 :

at the source code of this XML을 찾고 (munged, 아래 절단), 아닌 HTML 페이지가 될 것입니까? http://www.idug-db2.com/ 페이지에 내가 사용할 수있는 RSS 피드가 있습니까?

답변

0

RSS는 올바른 순서로 나타나야하는 고유 한 정의 된 요소 세트가있는 XML 유형입니다.

RSS is a dialect of XML. 모든 RSS 파일은 World Wide Web Consortium (W3C) 웹 사이트에 게시 된 XML 1.0 사양을 준수해야합니다.

날개 달린 엘프와 광부의 드워프가 휴머노이드 인 것처럼 보이지만 같은 구조로되어 있지는 않습니다. 네가 여기있는 것과 똑같다. 사이트가 포함 된 부분에서 필요에 따라 먹고 소화 할 수있는 유효한 XML 피드입니다.

그러나 필수 요소가없고 RSS 사양에 속하지 않는 다른 요소를 추가하기 때문에 유효한 RSS 피드가 아닙니다.

필요에 따라 XML 피드 소스를 해석 할 수있는 구문 분석기가 있거나 자신 만의 클래스/메소드를 작성할 수있는 경우,보고있는 것이 있습니다. 예제 사이트에서와 같이.

RSS가 사양에 정의 된 형식으로 예상되는 독자 또는 파서에게는 적합하지 않습니다.

관련 문제