AS P.NET Web Developer’s Guide Chapter 11
Creating an
XML.NET Guestbook

解决方案 »

  1.   

    01: <gbook>
    02: <xsd:schema id="gbook"
    03: targetNamespace=""
    04: xmlns=""
    05: xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    06: xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    07:
    08: <xsd:element name="gbook"
    09: msdata:IsDataSet="true">
    10: <xsd:complexType>
    11: <xsd:choice maxOccurs="unbounded">
    12: <xsd:element name="gbooky">
    13: <xsd:complexType>
    14: <xsd:sequence>
    15: <xsd:element name="Name" type="xsd:string" minOccurs="0"
    />
    16: <xsd:element name="Chrono" type="xsd:string" minOccurs="0" />
    17: <xsd:element name="Email" type="xsd:string" minOccurs="0" />
    18: <xsd:element name="Comments" type="xsd:string" minOccurs="0"
    />
    19: </xsd:sequence>
    20: </xsd:complexType>
    21: </xsd:element>
    22: </xsd:choice>
    23: </xsd:complexType>
    24: </xsd:element>
    25:
    26: </xsd:schema>
    27: </gbook>