| XML :: Æļ XML :: Æļ°¡ XML ¹®¼¸¦ ±¸¹® ºÐ¼®ÇÕ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
XML :: Æļ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~msergeant/XML-Parser-2.34/Expat/Expat.pm
XML :: Æļ ű×
XML :: Æļ ¼³¸í
XML :: Æļ´Â XML ¹®¼¸¦ ±¸¹® ºÐ¼®ÇÕ´Ï´Ù. XML :: Parser´Â XML Documents¸¦ ±¸¹® ºÐ¼®ÇϱâÀ§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. Synopsis XML :: Parser »ç¿ë; $ P1 = »õ·Î¿î XML :: Æļ (½ºÅ¸ÀÏ => 'µð¹ö±×'); $ p1-> parsefile ( 'rec-xml-19980210.xml'); $ P1-> ±¸¹® ( 'Hello World'); # ´ëü $ P2 = »õ·Î¿î XML :: Æļ (handlers => {start => handle_start, end => handle_end, char => handle_char}); $ P2-> ±¸¹® ºÐ¼® ($ ¼ÒÄÏ); # ´Ù¸¥ ´ëü $ P3 = »õ·Î¿î XML :: Æļ (errorContext => 2); $ P3-> SetHandlers (char => text, default => ±âŸ); Open (Foo, 'XMLGenerator |'); $ P3-> ±¸¹® (* foo, protocolencoding => 'ISO-8859-1'); ´Ý±â (foo); $ p3-> parsefile ( 'junk.xml', errorcontext => 3);ÀÌ ¸ðµâÀº XML ¹®¼¸¦ ±¸¹® ºÐ¼®ÇÏ´Â ¹æ¹ýÀ» Á¦°øÇÕ´Ï´Ù. ±×°ÍÀº James ClarkÀÇ Expat LibraryÀÇ ³·Àº ·¹º§ ÀÎÅÍÆäÀ̽º ÀÎ XML :: Parser :: ExpatÀÇ ¸Ç À§¿¡ ±â¿©ÇÕ´Ï´Ù. ±¸¹® ºÐ¼® ¸Þ¼Òµå Áß Çϳª¿¡ ´ëÇÑ °¢ È£ÃâÀº XML :: Parser °´Ã¼°¡ »ý¼º µÉ ¶§ Document.expat ¿É¼ÇÀ» ±¸¹® ºÐ¼®ÇÏ´Â µ¥ »ç¿ëµÇ´Â XML :: Parser :: ExpatÀÇ »õ ÀνºÅϽº¸¦ ¸¸µì´Ï´Ù. ±×·± ´ÙÀ½ÀÌ ¿É¼ÇÀº °¢ ±¸¹® ºÐ¼® ÅëÈÀÇ Expat °³Ã¼·Î Àü´ÞµË´Ï´Ù. ÇÁ·ÎÇÊ ¹æ¹ý¿¡ ´ëÇÑ Ãß°¡ Àμö·Î ÁÖ¾îÁú ¼öµµ ÀÖ½À´Ï´Ù.ÀÌ °æ¿ì XML :: Parser »ý¼º ½Ã°£¿¡ Á¦°øµÈ ¿É¼ÇÀ» ÀçÁ¤ÀÇÇÕ´Ï´Ù. ÆļÀÇ µ¿ÀÛÀº "½ºÅ¸ÀÏ"¹× / ¶Ç´Â "Çڵ鷯"¿É¼ÇÀ¸·Î Á¦¾îµË´Ï´Ù. "SetHandlers"¸Þ¼Òµå. ÀÌ ¸ðµç °ÍÀº XML :: Æļ¿¡ ÇÊ¿äÇÑ Çڵ鷯¸¦ ¼³Á¤ÇÏ¿© XML :: Parser :: Expat¿¡ ÇÊ¿äÇÑ Çڵ鷯¸¦ ¼³Á¤ÇÏ´Â ¸ÞÄ¿´ÏÁòÀ» Á¦°øÇÕ´Ï´Ù. ½ºÅ¸ÀÏÀ̳ª Çڵ鷯µµ ÁöÁ¤µÇÁö ¾ÊÀº °æ¿ì ±¸¹® ºÐ¼®Àº ¹®¼¸¦ Àß Çü¼ºÇϱâÀ§ÇÑ ¹®¼¸¦ È®ÀÎÇÕ´Ï´Ù. ±âº» Çڵ鷯°¡ È£ÃâµÇ¸é ù ¹ø° ¸Å°³ º¯¼ö·Î ¹Þ¾Æ µé¿©Áö°í Parser °´Ã¼°¡ ¾Æ´Ñ Expat °´Ã¼°¡ ³ªÅ¸³³´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
XML :: Æļ °ü·Ã ¼ÒÇÁÆ®¿þ¾î