| XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶´Â ½ºÅ°¸¶¸¦ ÄÄÆÄÀÏÇÏ´Â PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Mark Overmeer
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~markov/
XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ ű×
XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ ¼³¸í
XML :: Compile :: ½ºÅ°¸¶´Â ½ºÅ°¸¶¸¦ ÄÄÆÄÀÏÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. XML :: Compile :: Schema´Â Schema.Inheritance XML :: Compile :: Schema´Â XML :: CompileSynopsis # Áغñ My $ parser = xml :: libxml-> new; ³» $ tree = $ parser-> ±¸¹® ºÐ¼® ... (...); MY $ SCHEMA = XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ -> »õ ($ Æ®¸®); MY $ SCHEMA = XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ -> »õ ($ xml_string); MY $ READ = $ SCHEMA-> ÄÄÆÄÀÏ (READER => 'MYTYPE'); ³» $ hash = $ Àбâ -> ($ XML); ³» $ doc = xml :: libxml :: document-> new ( '1.0', 'UTF-8'); ³» $ write = $ schema-> ÄÄÆÄÀÏ (writer => 'mytype'); ³» $ XML = $ write -> ($ doc, $ hash); $ XML-> toString Àμâ;ÀÌ ¸ðµâÀº ½ºÅ°¸¶¿¡ ´ëÇÑ Áö½ÄÀ» ¼öÁýÇÕ´Ï´Ù. °¡Àå Áß¿äÇÑ ¹æ¹ýÀº XML ÆÄÀÏ Æǵ¶±â ¹× ÀÛ¼ºÀÚ°¡ ½ºÅ°¸¶ Á¤º¸¿Í ÀϺΠ¼±ÅÃµÈ À¯ÇüÀ» ±â¹ÝÀ¸·Î ÀÛ¼ºÇÒ ¼öÀÖ´Â Compile ()ÀÔ´Ï´Ù. ÄÄÆÄÀÏ·¯´Â XML :: Compile :: Schema :: Translate¿¡¼ ±¸ÇöµË´Ï´Ù. ƯÁ¤ µ¿ÀÛ°ú ÇØ´ç (ÇöÀç) Á¦ÇÑ »çÇ׿¡ ´ëÇÑ ¼öµ¿ ÆäÀÌÁö¸¦ ÂüÁ¶ÇϽʽÿÀ! ´©¶ô µÈ Á¶°¢°ú ½Ç¼ö¸¦ ã´Â °ÍÀ» µµ¿ÍÁֽʽÿÀ. Warning : Á¦°øµÈ ½ºÅ°¸¶°¡ °ËÁõµÇÁö ¾Ê½À´Ï´Ù! °æ¿ì¿¡ µû¶ó ÄÄÆÄÀÏ Å¸ÀÓ ¹× ·±Å¸ÀÓ ¿À·ù°¡º¸°íµÇÁö¸¸ ÀϹÝÀûÀ¸·Î Æļ°¡ ±×·¯ÇÑ ½Ç¼ö·Î ¹«¾ùÀ» ÇؾßÇÒÁö ÀüÇô ¸ð¸£´Â °æ¿ì¿¡¸¸ ÀϹÝÀûÀ¸·Î ¸¸ Ç¥½ÃµË´Ï´Ù. ¹Ý¸é¿¡ ó¸® µÈ µ¥ÀÌÅÍ°¡ À¯È¿¼ºÀÌ °ËÁõµË´Ï´Ù. Ãâ·ÂÀº SPECS¸¦ µû¶ó¾ßÇÕ´Ï´Ù. Æ®¸² ±¸ÇöÀº ¹ø¿ª±â¸¦ »ç¿ëÇÏ¸ç ³ªÁß¿¡ Ãß°¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Compile () ¸Þ¼µå·Î ÀÛ¼ºµÈ µÎ °¡Áö ¸ðµÎ ÀÛ¼º () ¸Þ¼µå .xml ReaderThe XML Reader´Â XML :: libxml :: ³ëµå Æ®¸® ¶Ç´Â XML ¹®ÀÚ¿¿¡¼ Çؽø¦ »ý¼ºÇÕ´Ï´Ù. °ªÀÌ Á¡°ËµÇ°í °ªÀÌ Specs.xml WriterThe ¶óÀÌÅÍ¿¡ µû¸£Áö ¾ÊÀ¸¸é Çؽø¦ ±â¹ÝÀ¸·Î ½ºÅ°¸¶ Áؼö XMLÀ» »ý¼ºÇÏÁö ¾ÊÀ¸¸é ¹«½ÃµË´Ï´Ù. µ¥ÀÌÅÍ ÀÎÄÚµùÀ» ¿Ã¹Ù¸£°Ô °¡Á® ¿À·Á¸é XML ³ëµå°¡ ³ªÁß¿¡ ÀÚ¸®¸¦ ¾òÀ» ¼öÀÖ´Â ¹®¼¸¦ Àü´ÞÇؾßÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
XML :: ÄÄÆÄÀÏ :: ½ºÅ°¸¶ °ü·Ã ¼ÒÇÁÆ®¿þ¾î