Click to See Complete Forum and Search --> : [Does an XML complext type always have an associated namepace]


chandru_bn
March 14th, 2008, 07:19 PM
Hello,

I am going through a document in which is defined a XML complex type(EventType) for handling events.

But the EventType does not have an associated namespace for it. All other complext types defined in the document have a namespace associated with them. So, I want to know whether is it mandatory to have the namespace associated with the complext type?

The sample schema is given below.

<xs:complexType name="A">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Role" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>

<xs:complexType name="B">
<xs:sequence>
<xs:element name="Thumbprint" type="ThumbprintType"/>
</xs:sequence>
</xs:complexType>

<xs:complexType>
<xs:element name="EventType">
<xs:sequence>
<xs:element name="ClientCertificate" type="ClientCertificateType"/>
</xs:sequence>
</xs:complexType>

Any help would be great.

thankx & rgds,
ChandruBN.