This chapter provides notes and tutorial examples on complex element declarations. Topics include declaring XML elements that includes or excludes text content, sub elements or attributes; defining complexType datatypes with simpleContent or complexContent using anyType as the base datatype.