My Name is Kay....

DIY , 먹방 , 개발 , 육아 , 여행 좋아합니다.
AdBlock 사용시 화면이 정상적으로 노출되지 않습니다.
포스팅 관련 문의 및 개발 문의는 Email : wkzkfmxksi@gmail.com

추가 포스팅이 이뤄지지 않는 블로그입니다. 문의는 wkzkfmxksi@gmail.com 으로 연락주세요.
kay
조회 수 3499 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

TEST URL : http://www.uhoon.co.kr/test/1153.asp

참고  Url 

: http://www.bustercollings.com/source-code-samples/rss-asp-classic-source-code-example.asp 

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/RSS/Q_23680954.html



<HTML>
<HEAD>
<title>RSS</title>
	<STYLE>
		*{font-family:verdana;}
		td{vertical-align:top;padding:5px 5px 5px 5px;}
	</STYLE>
</HEAD>
<BODY>
<%
	' change the RSSURL variable to the exact URL of the RSS Feed you want to pull
	RSSURL = "http://www.uhoon.co.kr/rss"
	Response.write RSSURL
%>
<TABLE border=1>
<%

	Dim objHTTP ' this object is used to call the RSS Feed remotely
	Dim RSSURL,RSSFeed ' these variables hold the URL and Content for the RSS Feed
	Dim xmlRSSFeed ' this variable hold the XML data in a DOM Object
	Dim objItems,objItem, objChild ' these variables are used to temporarily hold data from the various RSS Items
	Dim title,description,link '  these are local variables that will hold the data to be displayed
	Dim OutputHTML_1,OutputHTML_2,OutputHTML_3 ' these variables will hold the HTML that was converted from the RSS Feed

	' this code requests the raw RSS/XML and saves the response as a string <RSSFeed>
	Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
	objHTTP.open "GET",RSSURL,false
	objHTTP.send
	RSSFeed = objHTTP.responseText

	' this code takes the raw RSSFeed and loads it into an XML Object
	Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.4.0")
	xmlRSSFeed.async = false
	xmlRSSFeed.LoadXml(RSSFeed)

	' this code disposes of the object we called the feed with
	Set objHTTP = Nothing

	' this is where you determine how to display the content from the RSS Feed

	' this code grabs all the "items" in the RSS Feed
	Set objItems = xmlRSSFeed.getElementsByTagName("item")

	' this code disposes of the XML object that contained the entire feed
	Set xmlRSSFeed = Nothing

	' loop over all the items in the RSS Feed
	For x = 0 to objItems.length - 1
		' this code places the content from the various RSS nodes into local variables
		Set objItem = objItems.item(x)
		For Each objChild in objItem.childNodes
			Select Case LCase(objChild.nodeName)
				Case "title"
					  title = objChild.text
				Case "link"
					  link = objChild.text
				Case "description"
					  description = objChild.text
			End Select
		Next
		' Here are some various display samples.
		Response.write"<TR><TD><a href=""" & link & """>" & title & "</a></TD></TR>"
		Response.write"<TR><TD>Content Url :" & link &" Content :  " & description & "</TD></TR>"
	Next
%>
</TABLE>
</BODY>
</HTML>
?

  1. No Image 07Dec
    by kay
    2015/12/07 by kay
    Views 1953 

    변수 ByRef , ByVal

  2. IIS에서 ASP 날짜 형식 YYYY-MM-DD

  3. No Image 20Nov
    by kay
    2014/11/20 by kay
    Views 2458 

    ASP 에러 체크

  4. No Image 20Oct
    by kay
    2014/10/20 by kay
    Views 1720 

    이미지 사이즈 컴포넌트 "pakImage"

  5. No Image 07Aug
    by kay
    2014/08/07 by kay
    Views 2893 

    엑셀 다운로드 시 한글 파일명 깨짐 해결

  6. No Image 12Jun
    by kay
    2014/06/12 by kay
    Views 1954 

    [펌] Request.Form , Request.QueryString 값 확인하기

  7. No Image 20Feb
    by kay
    2014/02/20 by kay
    Views 3138 

    response.Cookie Collection , 쿠키 만료일 미지정시 만료일은?

  8. No Image 28Jan
    by kay
    2014/01/28 by kay
    Views 3150 

    UTF-8 URLDecode 함수

  9. Excel 파일(.xlsx) 읽어서 디비에 넣기

  10. No Image 13Sep
    by kay
    2013/09/13 by kay
    Views 4325 

    오늘 본 상품 쿠키로 처리하기

  11. No Image 31Jul
    by kay
    2013/07/31 by kay
    Views 2786 

    ASP 함수 " HTML 태그 제거하기"

  12. No Image 18Jun
    by kay
    2013/06/18 by kay
    Views 7440 

    ADODB.Stream + ASP에서 파일 다운로드

  13. No Image 13Jun
    by kay
    2013/06/13 by kay
    Views 5808 

    ASPFTP - 컴포넌트를 이용한 ASP 에서 FTP 사용하기

  14. No Image 22May
    by kay
    2013/05/22 by kay
    Views 3499 

    ASP 에서 RSS 가져와서 파싱하기

  15. No Image 20May
    by kay
    2013/05/20 by kay
    Views 3953 

    http를 이용한 xml 호출 및 파싱 ( MSXML2.DomDocument )

  16. No Image 13May
    by kay
    2013/05/13 by kay
    Views 2502 

    문자열 거꾸로 strReverse

  17. No Image 02Apr
    by kay
    2013/04/02 by kay
    Views 10134 

    asp Json 데이터 받기

  18. No Image 29Mar
    by kay
    2013/03/29 by kay
    Views 6043 

    동적 변수 선언 및 프로그래밍 " eval , Execute "

Board Pagination Prev 1 Next
/ 1