Jump to content

[Does an XML complext type always have an associated namepace]


Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy