<?
xml
version
=
"1.0"
encoding
"utf-16"
?>
-<
xs:schema
xmlns
"http://TestingSchemas.IncomingOrder"
xmlns:b
"http://schemas.microsoft.com/BizTalk/2003"
targetNamespace
xmlns:xs
"http://www.w3.org/2001/XMLSchema"
>
- <
xs:simpleType
name
"eMailType"
xs:restriction
base
"xs:string"
<
xs:pattern
value
"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
/>
</
xs:element
"Order"
xs:annotation
xs:appinfo
b:properties
b:property
distinguished
"true"
xpath
"/*[local-name()='Order' and namespace-uri()='http://TestingSchemas.IncomingOrder']/*[local-name()='Header' and namespace-uri()='']/*[local-name()='OrderId' and namespace-uri()='']"
"/*[local-name()='Order' and namespace-uri()='http://TestingSchemas.IncomingOrder']/*[local-name()='Header' and namespace-uri()='']/*[local-name()='OrderDate' and namespace-uri()='']"
xs:complexType
xs:sequence
"Header"
"OrderId"
type
"OrderDate"
"Currency"
minOccurs
"0"
maxOccurs
"1"
"ShipTo"
"ID"
"Name"
"AddressLine1"
"AddressLine2"
"City"
"State"
"PostalCode"
"Country"
"TelephoneNumber"
"EmailAddress"
"BillTo"
"HeaderComment"
"Details"
"unbounded"
"Item"
"ItemId"
"ItemDescription"
"Quantity"
"UnitPrice"
"LineNumber"
"UOM"
"RequestedDeliveryDate"
"LineComment"
The BizTalk Editor shows the schema in two sections, first section on left shows the tree view and the second section shows the XSD code. Properties window can be found at right bottom of the screen, which is used to set properties of the nodes.
BizTalk always uses UTF-16 encoding for their schemas.
Properties
Description
Available For
Base Data Type
Determines the name of the type definition that the current node type is based upon.
Root Node, Record Node, Element Field,Attribute Field
Block
The Block property is used to prevent specific types of derivation to be used in place of this Node. Default value is ’None’.
Root Node, Record Node
Content Type
Content model of the complex type (either of ComplexContent, SimpleContent,None).Default is ‘None’.
Data Structure Type
Indicates the structure type of the record. Usually is a global complex type or named reference to a global element.
Group Max Occurs
Maximum Occurrences of the underlying group content of this Node. Its value should always be greater than or equal to Group Min Occurs. Default value is ‘1’.
Group Min Occurs
Minimum Occurrences of the underlying group content of this Node. Its value should always be less than or equal to Group Max Occurs. Default value is ‘1’.
Group Order Type
Determines the type of group ordering for children nodes under the current context. Available options are Sequence, Choice, All.
Mixed
Determines whether the sub elements in the current context can be intermingled with text content. Default is ‘False’.
Nillable
Determines whether this node can be null in the instance document. Default is ‘False’.
Root Node, Record Node, Element Field
Node Name
Name of the Node.
Root Node, Record Node, Element Field, Attribute Field
Notes
This property is used to access a dialog for entry of what are effectively business level comments about the node with focus.
Max Occurs
Maximum Occurrences of this node.Its value should always be greater than or equal to minOccurs of this node. Use ‘unbounded’ or ‘*’ to indicate unlimited occurrences. Default value is ‘1’.
Record Node, Element Field
Min Occurs
Minimum occurrences of this node. Its value should always be less than or equal to MaxOccurs for this node. Default value is ‘1’.
Data Type
Data Type of the Node
Element Field, Attribute Field
Default Value
Default value of this node
Derived By
Indicates how the underlying Simple Type of the Field is derived from its base data type. Options available are Restriction, List and Union.
Fixed
The fixed attribute is used to ensure that the field is set to particular fixed value.
Form
During instance validation, determine whether the items in the current context must be qualified with a namespace. Options are Qualified and Unqualified.
Root node is a special type of Record Node which has at least one child and no parent. Whenever you create a schema in BizTalk schema editor a Root node will be added automatically with name as "Root".It can be renamed, and its best practice to name it after the purpose , say "Order" if it is for order.