XML :: ÇÇµå ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Simon Wistow
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~simonw/
XML :: Çǵå ű×
XML :: ÇÇµå ¼³¸í
½ÅµðÄÉÀÌ¼Ç Çǵå Æļ ¹× ÀÚµ¿ °Ë»ö XML :: FEED´Â RSS ¹× Atom ÇÇµå ¸ðµÎ¿¡ ´ëÇÑ ½ÅµðÄÉÀÌ¼Ç Çǵå ÆļÀÔ´Ï´Ù. ¶ÇÇÑ uri.xml :: feed°¡ ´ÙÀ½ ½ÅµðÄÉÀÌ¼Ç Çǵå Çü½ÄÀ» Áö¿øÇÏ´Â °æ¿ì Çǵ带 ã´Â Çǵå ÀÚµ¿ °Ë»öÀ» ±¸ÇöÇÕ´Ï´Ù. * RSS 0.91 * RSS 1.0 * RSS 2.0 * AtomXML :: ÇǵåÀÇ ¸ñÇ¥´Â ±¸¹® ºÐ¼®À»À§ÇÑ ÅëÇÕ API¸¦ Á¦°øÇÏ´Â °ÍÀÔ´Ï´Ù. ´Ù¾çÇÑ ½ÅµðÄÉÀÌ¼Ç Çü½ÄÀ» »ç¿ëÇÕ´Ï´Ù. RSS¿Í AtomÀÇ ´Ù¸¥ ¸ÀÀº ´Ù¸¥ ¹æ½ÄÀ¸·Î µ¥ÀÌÅ͸¦ ó¸®ÇÕ´Ï´Ù. ³¯Â¥ ó¸®; ¿ä¾à ¹× ÄÜÅÙÃ÷; Å»ÃâÇÏ°í °ßÀû; ÀÌ ¸ðµâÀº Çü½Ä°ú ÇØ´ç Çü½ÄÀ» ±¸ÇöÇϴ Ŭ·¡½º ÁÖÀ§ÀÇ ·¡ÆÛ¸¦ Á¦°øÇÔÀ¸·Î½á ÀÌ·¯ÇÑ Â÷À̸¦ Á¦°ÅÇÏ·Á°í ½ÃµµÇÕ´Ï´Ù (XML :: RSS ¹× XML :: Atom :: Feed). ¿¹¸¦ µé¾î, ³¯Â¥´Â À§ÀÇ °¢ Çü½Ä¿¡¼ ´Ù¸£°Ô 󸮵˴ϴÙ. ³¯Â¥ 󸮸¦ À§ÇØ ÅëÇÕ API¸¦ Á¦°øÇÏ·Á¸é XML :: FEED´Â ¸ðµç ³¯Â¥ Çü½ÄÀ» DateTime °´Ã¼·Î Åõ¸íÇÏ°Ô º¯È¯ ÇÑ ´ÙÀ½ Caller.Synopsis XML :: Feed¸¦ »ç¿ëÇÕ´Ï´Ù. ³» $ feed = xml :: feed-> parse (URI-> »õ ( 'http:/xample.com/atomml'))) ¶Ç´Â ´ÙÀÌ XML :: Çǵå -> errstr; $ Çǵå -> Á¦¸ñ, "\ n"; $ Entry ($ feed-> Ç׸ñ) {} ## ## ÀÚµ¿ °Ë»öÀ» »ç¿ëÇÏ¿© ÁÖ¾îÁø ÆäÀÌÁö¿¡¼ ¸ðµç ½ÅµðÄÉÀÌ¼Ç Çǵ带 ã½À´Ï´Ù. my @feeds = xml :: feed-> find_feeds ( 'http://example.com/'); ¿ä±¸ »çÇ× : ¡¤ Perl.
XML :: ÇÇµå °ü·Ã ¼ÒÇÁÆ®¿þ¾î