CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Dec 2007
    Posts
    4

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

    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.

    Code:
    <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.
    Last edited by PeejAvery; March 15th, 2008 at 01:39 PM. Reason: Added code tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured