{"id":6273,"date":"2023-01-03T14:09:01","date_gmt":"2023-01-03T06:09:01","guid":{"rendered":"https:\/\/www.ek21.com\/dating\/date\/6273\/"},"modified":"2023-01-03T14:09:01","modified_gmt":"2023-01-03T06:09:01","slug":"xsd-%e5%be%a9%e5%90%88%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/ek21.com\/dating\/6273\/","title":{"rendered":"XSD \u5fa9\u5408\u5143\u7d20"},"content":{"rendered":"<p>\u5fa9\u5408\u5143\u7d20\u5305\u542b\u4e86\u5176\u4ed6\u7684\u5143\u7d20\u53ca\/\u6216\u5c6c\u6027\u3002<\/p>\n<hr>\n<p><img decoding=\"async\" src=\"https:\/\/p3.pstatp.com\/large\/1b7b0004a34f119fea9b?\/1.jpg\" alt=\"XSD \u5fa9\u5408\u5143\u7d20\"><\/p>\n<p>&lt;h2&gt;\u4ec0\u9ebc\u662f\u5fa9\u5408\u5143\u7d20\uff1f<\/p>\n<p>\u5fa9\u5408\u5143\u7d20\u6307\u5305\u542b\u5176\u4ed6\u5143\u7d20\u53ca\/\u6216\u5c6c\u6027\u7684 XML \u5143\u7d20\u3002<\/p>\n<p>\u6709\u56db\u7a2e\u985e\u578b\u7684\u5fa9\u5408\u5143\u7d20\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>\u7a7a\u5143\u7d20<\/p>\n<\/li>\n<li>\n<p>\u5305\u542b\u5176\u4ed6\u5143\u7d20\u7684\u5143\u7d20<\/p>\n<\/li>\n<li>\n<p>\u50c5\u5305\u542b\u6587\u672c\u7684\u5143\u7d20<\/p>\n<\/li>\n<li>\n<p>\u5305\u542b\u5143\u7d20\u548c\u6587\u672c\u7684\u5143\u7d20<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\uff1a<\/strong> \u4e0a\u8ff0\u5143\u7d20\u5747\u53ef\u5305\u542b\u5c6c\u6027\uff01<\/p>\n<hr>\n<p><img decoding=\"async\" src=\"https:\/\/p98.pstatp.com\/large\/1b7e000490d2d2bf131d?\/1.jpg\" alt=\"XSD \u5fa9\u5408\u5143\u7d20\"><\/p>\n<p>\u5fa9\u5408\u5143\u7d20\u7684\u4f8b\u5b50<\/p>\n<p>\u5fa9\u5408\u5143\u7d20\uff0c&#8221;product&#8221;\uff0c\u662f\u7a7a\u7684\uff1a<\/p>\n<p>&lt;product pid=&#8221;1345&#8243;\/&gt;<\/p>\n<p>\u5fa9\u5408\u5143\u7d20\uff0c&#8221;employee&#8221;\uff0c\u50c5\u5305\u542b\u5176\u4ed6\u5143\u7d20\uff1a<\/p>\n<p>&lt;employee&gt;<\/p>\n<p> &lt;firstname&gt;John&lt;\/firstname&gt;<\/p>\n<p> &lt;lastname&gt;Smith&lt;\/lastname&gt;<\/p>\n<p>&lt;\/employee&gt;<\/p>\n<p>\u5fa9\u5408 XML \u5143\u7d20\uff0c&#8221;food&#8221;\uff0c\u50c5\u5305\u542b\u6587\u672c\uff1a<\/p>\n<p>&lt;food type=&#8221;dessert&#8221;&gt;Ice cream&lt;\/food&gt;<\/p>\n<p>\u5fa9\u5408XML\u5143\u7d20\uff0c&#8221;description&#8221;\u5305\u542b\u5143\u7d20\u548c\u6587\u672c\uff1a<\/p>\n<p>&lt;description&gt;<\/p>\n<p>It happened on &lt;date&gt;03.03.99&lt;\/date&gt; &#8230;.<\/p>\n<p>&lt;\/description&gt;<\/p>\n<hr>\n<p><img decoding=\"async\" src=\"https:\/\/p98.pstatp.com\/large\/1b7c000496f72330b640?\/1.jpg\" alt=\"XSD \u5fa9\u5408\u5143\u7d20\"><\/p>\n<p>\u5982\u4f55\u5b9a\u7fa9\u5fa9\u5408\u5143\u7d20\uff1f<\/p>\n<p>\u8acb\u770b\u9019\u500b\u5fa9\u5408 XML \u5143\u7d20\uff0c&#8221;employee&#8221;\uff0c\u50c5\u5305\u542b\u5176\u4ed6\u5143\u7d20\uff1a<\/p>\n<p>&lt;employee&gt;<\/p>\n<p> &lt;firstname&gt;John&lt;\/firstname&gt;<\/p>\n<p> &lt;lastname&gt;Smith&lt;\/lastname&gt;<\/p>\n<p>&lt;\/employee&gt;<\/p>\n<p>\u5728 XML Schema \u4e2d\uff0c\u6211\u5011\u6709\u5169\u7a2e\u65b9\u5f0f\u4f86\u5b9a\u7fa9\u5fa9\u5408\u5143\u7d20\uff1a<\/p>\n<p>1. \u900f\u904e\u547d\u540d\u6b64\u5143\u7d20\uff0c\u53ef\u76f4\u63a5\u5c0d&#8221;employee&#8221;\u5143\u7d20\u9032\u884c\u8072\u660e\uff0c\u5c31\u50cf\u9019\u6a23\uff1a<\/p>\n<p>&lt;xs:element name=&#8221;employee&#8221;&gt;<\/p>\n<p> &lt;xs:complexType&gt;<\/p>\n<p> &lt;xs:sequence&gt;<\/p>\n<p> &lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;\/xs:sequence&gt;<\/p>\n<p> &lt;\/xs:complexType&gt;<\/p>\n<p>&lt;\/xs:element&gt;<\/p>\n<p>\u5047\u5982\u60a8\u4f7f\u7528\u4e0a\u9762\u6240\u63cf\u8ff0\u7684\u65b9\u6cd5\uff0c\u90a3\u9ebc\u50c5\u6709 &#8220;employee&#8221; \u53ef\u4f7f\u7528\u6240\u898f\u5b9a\u7684\u5fa9\u5408\u985e\u578b\u3002\u8acb\u6ce8\u610f\u5176\u5b50\u5143\u7d20\uff0c&#8221;firstname&#8221; \u4ee5\u53ca &#8220;lastname&#8221;\uff0c\u88ab\u5305\u570d\u5728\u6307\u793a\u5668 &lt;sequence&gt;\u4e2d\u3002\u9019\u610f\u5473\u8457\u5b50\u5143\u7d20\u5fc5\u9808\u4ee5\u5b83\u5011\u88ab\u8072\u660e\u7684\u6b21\u5e8f\u51fa\u73fe\u3002\u60a8\u6703\u5728 XSD \u6307\u793a\u5668 \u9019\u4e00\u7bc0\u5b78\u7fd2\u66f4\u591a\u6709\u95dc\u6307\u793a\u5668\u7684\u77e5\u8b58\u3002<\/p>\n<p>2. &#8220;employee&#8221; \u5143\u7d20\u53ef\u4ee5\u4f7f\u7528 type \u5c6c\u6027\uff0c\u9019\u500b\u5c6c\u6027\u7684\u4f5c\u7528\u662f\u5f15\u7528\u8981\u4f7f\u7528\u7684\u5fa9\u5408\u985e\u578b\u7684\u540d\u7a31\uff1a<\/p>\n<p>&lt;xs:element name=&#8221;employee&#8221; type=&#8221;personinfo&#8221;\/&gt;<\/p>\n<p>&lt;xs:complexType name=&#8221;personinfo&#8221;&gt;<\/p>\n<p> &lt;xs:sequence&gt;<\/p>\n<p> &lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;\/xs:sequence&gt;<\/p>\n<p>&lt;\/xs:complexType&gt;<\/p>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u4e86\u4e0a\u9762\u6240\u63cf\u8ff0\u7684\u65b9\u6cd5\uff0c\u90a3\u9ebc\u82e5\u5e79\u5143\u7d20\u5747\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u5fa9\u5408\u985e\u578b\uff0c\u4f8b\u5982\u9019\u6a23\uff1a<\/p>\n<p>&lt;xs:element name=&#8221;employee&#8221; type=&#8221;personinfo&#8221;\/&gt;<\/p>\n<p>&lt;xs:element name=&#8221;student&#8221; type=&#8221;personinfo&#8221;\/&gt;<\/p>\n<p>&lt;xs:element name=&#8221;member&#8221; type=&#8221;personinfo&#8221;\/&gt;<\/p>\n<p>&lt;xs:complexType name=&#8221;personinfo&#8221;&gt;<\/p>\n<p> &lt;xs:sequence&gt;<\/p>\n<p> &lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;\/xs:sequence&gt;<\/p>\n<p>&lt;\/xs:complexType&gt;<\/p>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u5728\u5df2\u6709\u7684\u5fa9\u5408\u5143\u7d20\u4e4b\u4e0a\u4ee5\u67d0\u500b\u5fa9\u5408\u5143\u7d20\u70ba\u57fa\u790e\uff0c\u7136\u5f8c\u6dfb\u52a0\u4e00\u4e9b\u5143\u7d20\uff0c\u5c31\u50cf\u9019\u6a23\uff1a<\/p>\n<p>&lt;xs:element name=&#8221;employee&#8221; type=&#8221;fullpersoninfo&#8221;\/&gt;<\/p>\n<p>&lt;xs:complexType name=&#8221;personinfo&#8221;&gt;<\/p>\n<p> &lt;xs:sequence&gt;<\/p>\n<p> &lt;xs:element name=&#8221;firstname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;lastname&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;\/xs:sequence&gt;<\/p>\n<p>&lt;\/xs:complexType&gt;<\/p>\n<p>&lt;xs:complexType name=&#8221;fullpersoninfo&#8221;&gt;<\/p>\n<p> &lt;xs:complexContent&gt;<\/p>\n<p> &lt;xs:extension base=&#8221;personinfo&#8221;&gt;<\/p>\n<p> &lt;xs:sequence&gt;<\/p>\n<p> &lt;xs:element name=&#8221;address&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;city&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;xs:element name=&#8221;country&#8221; type=&#8221;xs:string&#8221;\/&gt;<\/p>\n<p> &lt;\/xs:sequence&gt;<\/p>\n<p> &lt;\/xs:extension&gt;<\/p>\n<p> &lt;\/xs:complexContent&gt;<\/p>\n<p>&lt;\/xs:complexType&gt;<\/p>\n<p>\u5982\u60a8\u9084\u6709\u4e0d\u660e\u767d\u7684\u53ef\u4ee5\u5728\u4e0b\u9762\u8207\u6211\u7559\u8a00\u6216\u662f\u8207\u6211\u63a2\u8a0eQQ\u7fa4308855039\uff0c\u6211\u5011\u4e00\u8d77\u98db\uff01<\/p>\n<p>\u5c0f\u5925\u4f34\u5011\uff0c\u611f\u89ba\u6211\u7684\u5206\u4eab\u5f88\u4e0d\u932f\u7684\u5225\u5fd8\u8a18\u300c\u8b9a\u8cde\u300d\u6211\u4e00\u4e0b\u55b2!<\/p>\n<p class=\"p1\" style=\"text-align: center;\"><a style=\"text-size-adjust: 100%; padding: 15px 18px 18px; valign=top; border-radius: 10px; background-color: #3b5998;\" href=\"https:\/\/eros.ek21.com\/user\/fb_login\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color: #ffffff;\"><span style=\"font-family: PingFang TC; font-size: medium;\"><span style=\"letter-spacing: normal;\">\u4f7f\u7528 Facebook \u9810\u7d04<\/span><\/span><\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\u5fa9\u5408\u5143\u7d20\u5305\u542b\u4e86\u5176\u4ed6\u7684\u5143\u7d20\u53ca\/\u6216\u5c6c\u6027\u3002 &lt;h2 <a class=\"mh-excerpt-more\" href=\"https:\/\/ek21.com\/dating\/6273\/\" title=\"XSD \u5fa9\u5408\u5143\u7d20\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":3,"featured_media":6274,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[38],"class_list":["post-6273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-date","tag-38"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/posts\/6273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/comments?post=6273"}],"version-history":[{"count":0,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/posts\/6273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/media\/6274"}],"wp:attachment":[{"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/media?parent=6273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/categories?post=6273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ek21.com\/dating\/wp-json\/wp\/v2\/tags?post=6273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}