True or False: Every element has a type, even if none is specified

Hi Folks,

I claim this statement is true: 

	Every element has a type, even if none is specified; 
	if none is specified, then the element has the default type.

For example, no type is specified in this element declaration:

	<element name="E" />

So it has the default type:

   <element name="E">
      <complexType mixed="true">
         <sequence>
            <any maxOccurs="unbounded" minOccurs="0"/>
         </sequence>
         <anyAttribute/>
      </complexType>
   </element>

Likewise, no type is specified in this attribute declaration:

	<attribute name="A" />

So it has the default type:

	<attribute name="A" type="anySimpleType" />

Do you agree with this statement: 

	Every element has a type, even if none is specified; 
	if none is specified, then the element has the default type.

/Roger

Received on Thursday, 21 January 2016 12:51:46 UTC