XMLÁ¤¸®
FrontPage|FindPage|TitleIndex|RecentChanges|UserPreferences E D R S I M H RSS

XML Á¤¸® #

Á¤¸®ÇÏ´Ù ¸¸°Ç ³ªÁß¿¡ -¤·-;;

  • XML: Extensible Markup Language
    • data ¸¸ ÀúÀåÇÑ´Ù
    • root element ´Â ¹Ýµå½Ã Çϳª´Ù. (¿ä°Í ½Ç¼öÇÑ ÀûÀÖÀ½;)
  • XML namespace
    • º¸Åë URI »ç¿ë
      • URL Àº URI ÀÇ subset
      • URI ´Â identifier, ´ÜÁö À¯ÀÏÇÑ ¹®ÀÚ¿­ÀÏ »ÓÀÌ´Ù. url µµ Æ÷ÇÔ. ²À ¹«½¼ http:// ¾î¼°íÀÏ ÇÊ¿ä´Â ¾ø´Ù.
    • ÇÑ ¹®¼­³»¿¡¼­ naming collision À» ¸·±â À§ÇÔ
    • ¿¹¾àµÈ 'xml' À̶ó´Â namespace ¸¸ »©³õ°í ¹¹µç »ç¿ë°¡´ÉÇÏ´Ù.
    • xmlns ´Â xml namspace ¸¦ ¸»ÇÑ´Ù.
    • ¾Æ·¡Ã³·³ file À» ÁöÁ¤ÇÒ ¶§ ÀÏ¹Ý ÆÄÀÏ À̹ÌÁö ÆÄÀÏÀ» ±¸ºÐÇÏ°í ½ÍÀ» ¶§ namespace ¸¦ ¾´´Ù. (¹¹ º¸ÅëÀº ±×³É file tag ¶û imgfile ű׸¦ »ç¿ëÇÏ°ÚÁö¸¸;)
      <sometag>
        <file>
        </file>
        <file>
        </file>
      </sometag>
      
  • XSL: Extensible Stylesheet Language
    • xml ¹®¼­ÀÇ ½ºÅ¸ÀϽ¬Æ®
    • XSL-FO, XSLT, ?XPath
    • XML vs XSL =(ºñ½Á) XHTML vs CSS
      • XSL ÀÌ ´õ powerful ÇÏ´Ù.
      • XSLT ¸¦ °í·ÁÇÑ´Ù¸é CSS ¶ûÀº ÀüÇô ´Ù¸¥ µíµµ ½Í´Ù.
  • Define(xml ¹®¼­ÀÇ structure ¸¦ validation Çϴµ¥ ÇÊ¿äÇÏÁö¸¸ Çʼö¿ä¼Ò´Â ¾Æ´Ï´Ù)
    • DTD(Document Type Definition)
      • element type, attr, ±×µé°£ÀÇ relationship À» Á¤ÀÇÇÑ´Ù.
      • EBNF(Extended Backus Naur Form) grammar ¸¦ »ç¿ëÇÑ´Ù.
        • + ´Â 1 ¹ø ÀÌ»ó
        • * 0 ¹ø ÀÌ»ó(optional ÇÑ tag ÀÏ ¶§)
        • ? 0~1 ¹ø(¸¶Âù°¡Áö optional Çϸ鼭µµ Çѹø¸¸ ³ª¿Í¾ß ÇÏ´Â tag ÀÏ ¶§)
        • ¾øÀ¸¸é 1¹ø
        • element ³ª attr ÀÇ data type À» Á¤ÀÇÇÒ ¼ö´Â ¾ø´Ù.(xml schema ¿ÍÀÇ Â÷ÀÌÁ¡)
        • CDATA character data
        • PCDATA parsed character data( <, >, & µîÀÌ ¾ø´Â character data)
      • Çʼö´Â ¾Æ´ÏÁö¸¸ parser ·Î ÇÏ¿©±Ý validation Çϴµ¥ »ç¿ëµÉ ¼ö ÀÖ´Ù.
        <!DOCTYPE letter SYSTEM "letter.dtd"> 
    • XML Schema
      • EBNF ´ë½Å¿¡ XML syntax ¸¦ »ç¿ëÇÑ´Ù.
      • DTD °¡ ¸øÇÏ´ø data type Á¤ÀÇ°¡ °¡´ÉÇÏ´Ù!!(¼ýÀÚÀÎÁö ¹®ÀÚÀÎÁö ±¸º°Çؼ­ error ¸¦ ³¾ ¼ö ÀÖ´Ù!)
      • º¸Åë .xsd ¸¦ »ç¿ëÇÑ´Ù. (xml schema document)
      • type ¸î°¡Áö
        • Complex type
        • Simple type: attr À̳ª child ¸¦ °¡Áú ¼ö ¾ø´Ù.
  • parsing method
    • DOM: Document Object Model
      • hierarchical tree structure
      • Æ®¸®¸¦ ¸Þ¸ð¸®¿¡ ´Ù ¿Ã·Á³õ´Â´Ù.
    • SAX: Simple API for XML
      • event-based model
      • ÇÊ¿äÇÑ Á¤º¸¸¸ load °¡´ÉÇÏ´Ù
      • ÇÊ¿ä¾ø´Â °Í±îÁö DOM ¹æ½ÄÀ¸·Î load ÇÏ¸é ¸Þ¸ð¸® ³¶ºñ
    • DOM °ú SAX
      • °¢°¢ÀÇ Àå´ÜÁ¡ÀÌ ÀÖ´Ù.(Ã¥ ÂüÁ¶)
      • DOM ¹æ½ÄÀ» ±¸ÇöÇÒ ¶§ ³»ºÎÀûÀ¸·Î SAX ¸¦ »ç¿ëÇϱ⵵ ÇÑ´Ù.

EditText|FindPage|DeletePage|LikePages| Valid XHTML 1.0! Valid CSS! powered by MoniWiki