Elements in XML Schema represent an instance of an element in an XML document generated from the schema. At their most basic, an element consists of a single element element. Like the element element used to define the members of a complex type, they have three attributes:
name is a required attribute that specifies the name of the element as it will appear in an XML document.
type specifies the type of the element. The type can be any XML Schema primitive type or any named complex type defined in the contract. This attribute can be omitted if the type has an in-line definition.
nillable specifies if an element can be left out of a document entirely. If nillable is set to true, the element can be omitted from any document generated using the schema.
An element can also have an in-line type definition. In-line types are specified using either a complexType element or a simpleType element. Once you specify if the type of data is complex or simple, you can define any type of data needed using the tools available for each type of data. In-line type definitions are discouraged, because they are not reusable.