ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: Schema (XSD) :: Schema (XSD) ½éÉÜ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

Schema (XSD)
Schema (XSD) ½éÉ..
ΪºÎʹÓà XML Sch..
ÈçºÎ¶¨ÖÆ XSD
XSD - <schema..
XSD ¼òµ¥ÔªËØ
XSD ÊôÐÔ
XSD Ô¼ÊøÃæ
XSD ¸´ºÏÔªËØ
XSD ¸´ºÏ¿ÕÔªËØ
XSD ¸´ºÏ´¿ÔªËØ
XSD ¸´ºÏ´¿Îı¾
XSD »ìºÏÄÚÈݵĸ´..
XSD ָʾÆ÷¸´ºÏÀà..
XSD <any> ..
XSD <anyAttri..
XSD ÔªËØÌæ´ú
XSD ʵÀý
XSD ×Ö·û´®Êý¾ÝÀà..
XSD ÈÕÆÚÊý¾ÝÀàÐÍ
XSD СÊýÊý¾ÝÀàÐÍ

Schema (XSD) ½éÉÜ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-29 ÐÞ¸Ä:2007-08-26 ä¯ÀÀ:8877 :: ::

XML Schema is an XML-based alternative to DTD.
XML SchemaÊÇ»ùÓÚXMLÓïÑԵģ¬ËüÊÇÓÃÓÚÌæ´úDTDµÄ¡£

An XML schema describes the structure of an XML document.
Ò»·ÝXML schemaÎļþÃèÊöÁËXMLÎĵµµÄ½á¹¹¡£

The XML Schema language is also referred to as XML Schema Definition (XSD).
XML SchemaÓïÑÔÒ²±»³ÆÎªXML Schema Definition (¼´£ºXSD)¡£


What You Should Already Know
ÄãÐèҪʵÏ־߱¸µÄ֪ʶ

Before you continue you should have a basic understanding of the following:
ÔÚ¼ÌÐøÏÂÃæµÄѧϰ֮ǰ£¬ÄãÐèÒªÕÆÎÕÏÂÃæµÄ֪ʶ£º

  • HTML / XHTML
  • XML ºÍ XML Ãû³Æ¿Õ¼ä
  • Á˽âDTDµÄ»ù±¾ÖªÊ¶

If you want to study these subjects first, find the tutorials on our Home page.
Èç¹ûÄãÏ£ÍûÊÂÏÈѧϰÉÏÊö֪ʶ£¬Çë²ÎÔÄÎÒÃǵĽ̳ÌÖ÷Ò³¡£


What is an XML Schema?
ʲôÊÇXML Schema£¿

The purpose of an XML Schema is to define the legal building blocks of an XML document, just like a DTD.
XML SchemaµÄ×÷ÓÃÊǶ¨ÒåÒ»·ÝXMLÎĵµµÄºÏ·¨×é¼þȺ£¬ÕâÓëDTDµÄ×÷ÓÃÀàËÆ¡£

An XML Schema:
Ò»·ÝXML Schema£º

  • defines elements that can appear in a document
    ¶¨ÒåÁË¿ÉÒÔ³öÏÖÔÚÎĵµÀïµÄÔªËØ
  • defines attributes that can appear in a document
    ¶¨ÒåÁË¿ÉÒÔ³öÏÖÔÚÎĵµÀïµÄÊôÐÔ
  • defines which elements are child elements
    ¶¨ÒåÁËÄÄÐ©ÔªËØÊÇ×ÓÔªËØ
  • defines the order of child elements
    ¶¨ÒåÁË×ÓÔªËØµÄ˳Ðò
  • defines the number of child elements
    ¶¨ÒåÁË×ÓÔªËØµÄÊýÁ¿
  • defines whether an element is empty or can include text
    ¶¨ÒåÁËÒ»¸öÔªËØÓ¦ÊÇ·ñΪ¿Õ£¬»òÕâÊÇ·ñÄܰüº¬Îı¾
  • defines data types for elements and attributes
    ¶¨ÒåÁËÔªËØºÍÊôÐÔµÄÊý¾ÝÀàÐÍ
  • defines default and fixed values for elements and attributes
    ¶¨ÒåÁËÔªËØºÍÊôÐÔµÄĬÈÏÖµºÍ¹Ì¶¨Öµ

XML Schemas are the Successors of DTDs
XML Schema ÊÇ DTD µÄ“½ÓÈÎÕß”

We think that very soon XML Schemas will be used in most Web applications as a replacement for DTDs. Here are some reasons:
ÎÒÃÇÈÏΪXML SchemaºÜ¿ì¾Í»áÌæ´úDTD£¬´Ó¶øÔÚ´ó¶àÊýµÄÍøÂçÓ¦ÓóÌÐòÖй㷺ʹÓá£

  • XML Schemas are extensible to future additions
    XML Schema¶Ô½«À´µÄ¸½¼ÓÄÚÈÝÊÇ¿ÉÀ©Õ¹µÄ
  • XML Schemas are richer and more powerful than DTDs
    XML SchemaÄÚÈݱÈDTD·á¸»£¬¹¦ÄÜÒ²¸üÇ¿
  • XML Schemas are written in XML
    XML SchemaÊÇÓÃXMLÓïÑÔ±àд¶ø³ÉµÄ
  • XML Schemas support data types
    XML SchemaÖ§³ÖÊý¾ÝÀàÐÍ
  • XML Schemas support namespaces
    XML SchemaÖ§³ÖÃüÃû¿Õ¼ä

XML Schema is a W3C Standard
XML SchemaÊÇW3CÍÆ¼öµÄ±ê×¼

XML Schema became a W3C Recommendation 02. May 2001.
XML SchemaÓÚ2001Äê5ÔÂ2ÈÕ³ÉΪW3CÍÆ¼öʹÓõıê×¼¡£

You can read more about the XML Schema standard in our W3C tutorial.
ÔÚW3C ½Ì³ÌÖУ¬Äã¿ÉÒÔѧϰ¸ü¶à¹ØÓÚXML Schema±ê×¼¡£

ÆÀÂÛ (0) All