Click here to Skip to main content
15,884,298 members
Articles / Desktop Programming / Windows Forms

Drawing Names (A Christmas Name Drawing Application)

Rate me:
Please Sign up or sign in to vote.
4.78/5 (11 votes)
23 May 2012CPOL17 min read 67K   606   26  
A Christmas name drawing application using DHTML, JavaScript, XML, C#, Forms, VS2008, .NET 3.5, encryption.
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="urn:drawingnames-schema"
    elementFormDefault="qualified"
    targetNamespace="urn:drawingnames-schema">
  <xsd:element name="drawingNames">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="thisYearsSecretSantaMessage">
          <xsd:complexType>
            <xsd:attribute name="sMessage" type="xsd:string" use="required" />
            <xsd:attribute name="sYear" type="xsd:string" use="required" />
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="thisYearsCheatSheet">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element maxOccurs="unbounded" name="cheat">
                <xsd:complexType>
                  <xsd:attribute name="nCheatsName" type="xsd:unsignedShort" use="required" />
                  <xsd:attribute name="nCheatNamePicks" type="xsd:unsignedByte" use="required" />
                  <xsd:attribute name="sDescription" type="xsd:string" use="required" />
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
            <xsd:attribute name="nCheatCount" type="xsd:unsignedByte" use="required" />
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="historyLog">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element maxOccurs="unbounded" name="year">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element maxOccurs="unbounded" name="participantHistory">
                      <xsd:complexType>
                        <xsd:attribute name="nIndex" type="xsd:unsignedByte" use="required" />
                        <xsd:attribute name="bSanta" type="xsd:boolean" use="required" />
                        <xsd:attribute name="nPick" type="xsd:unsignedByte" use="required" />
                        <xsd:attribute name="nSantaTarget" type="xsd:unsignedByte" use="optional" />
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                  <xsd:attribute name="nYearNumber" type="xsd:unsignedShort" use="required" />
                  <xsd:attribute name="nameCount" type="xsd:unsignedByte" use="required" />
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
            <xsd:attribute name="nYearCount" type="xsd:unsignedByte" use="required" />
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="nameList">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element maxOccurs="unbounded" name="participantData">
                <xsd:complexType>
                  <xsd:attribute name="nIndex" type="xsd:unsignedByte" use="required" />
                  <xsd:attribute name="sSpouse" type="xsd:unsignedByte" use="required" />
                  <xsd:attribute name="sName" type="xsd:string" use="required" />
                  <xsd:attribute name="sPassPhrase" type="xsd:string" use="required" />
                  <xsd:attribute name="sDrawMessage" type="xsd:string" use="required" />
                  <xsd:attribute name="sMessageSanta" type="xsd:string" use="required" />
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
            <xsd:attribute name="nListLength" type="xsd:unsignedByte" use="required" />
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
-- N/A --
United States United States
My educational background is Mathematics, Physics and Computer Science. I also earned a secondary teaching certificate.

My professional background is as a Software Engineer for the past 25 years or so and before that an instructor of Mathematics and Computer Science at the college level.

I currently design, develop, and support standards based Application Programming Interfaces that allow Windows based applications to interact with financial devices in a vendor neutral manner.

My hobbies are cycling, playing with the Internet, and reading.

Comments and Discussions