Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8046465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:47:39+00:00 2026-06-05T05:47:39+00:00

Long time reader, first time poster. It’s time to mine this site for all

  • 0

Long time reader, first time poster. It’s time to mine this site for all it’s knowledge!

I’m trying to set up an xml schema and populate the data inside excel. I’ve made some definitions for some complexTypes because they will be reused quite often. If I reference the type, for example 3 times, inside excel it only maps the type once.

I’m pretty new to schemas but my boss wants me to use them. Any other criticism would be greatly appreciated.

XML SCHEMA:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<!-- Type Definitions (DoorStyle, Colour, Accessory and TamarackModel) -->

<xsd:complexType name="DoorStyle">
  <xsd:sequence>
    <xsd:element name="style" type="xsd:string"/>
      <xsd:element name="wood" type="xsd:string"/>
    <xsd:element name="colour" type="xsd:string"/>
    <xsd:element name="imgsrc" type="xsd:string"/>
  </xsd:sequence>
</xsd:complexType>

<xsd:complexType name="Colour">
  <xsd:sequence>
    <xsd:element name="colour" type="xsd:string"/>
    <xsd:element name="wood" type="xsd:string"/>
    <xsd:element name="imgsrc" type="xsd:string"/>
  </xsd:sequence>
</xsd:complexType>

<xsd:complexType name="Accessory">
  <xsd:sequence>
    <xsd:element name="pdf" type="xsd:string"/>
  </xsd:sequence>
</xsd:complexType>

<xsd:complexType name="TamarackModel">
  <xsd:sequence>
    <xsd:element name="drawing" type="xsd:string"/>
    <xsd:element name="reverseDrawing" type="xsd:string"/>
    <xsd:element name="priceSheet" type="xsd:string"/>
  </xsd:sequence>
</xsd:complexType>


<!-- Group Definitions (DoorStyles, Colours, Accessories and TamarackModels) -->

<xsd:element name="DoorStyles">
  <xsd:complexType>
<!-- <xsd:attribute name="url" type="xsd:string" fixed="http://www.muskokacabco.com/muskoka-kitchens-gallery-door-styles.html"/> -->
    <xsd:sequence>
      <xsd:element name="DoorStyle" type="DoorStyle"/>
      <xsd:element name="DoorStyle" type="DoorStyle"/>
      <xsd:element name="DoorStyle" type="DoorStyle"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="Colours">
  <xsd:complexType>
<!-- xsd:attribute name="url" type="xsd:string" fixed="http://www.muskokacabco.com/muskoka-kitchens-gallery-stain-colours.html"/> -->
    <xsd:sequence>
      <xsd:element name="Colour" type="Colour"/>
      <xsd:element name="Colour" type="Colour"/>
      <xsd:element name="Colour" type="Colour"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="Accessories">
  <xsd:complexType>
<!-- <xsd:attribute name="url" type="xsd:string" fixed="http://www.muskokacabco.com/muskoka-kitchens-accessories.html"/> -->
    <xsd:sequence>
      <xsd:element name="Accessory" type="Accessory"/>
      <xsd:element name="Accessory" type="Accessory"/>
      <xsd:element name="Accessory" type="Accessory"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="TamarackModels">
  <xsd:complexType>
<!-- <xsd:attribute name="url" type="xsd:string" fixed="http://www.muskokacabco.com/muskoka-kitchens-tamarack-models.html"/> -->
    <xsd:sequence>
      <xsd:element name="TamarackModel" type="TamarackModel"/>
      <xsd:element name="TamarackModel" type="TamarackModel"/>
      <xsd:element name="TamarackModel" type="TamarackModel"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>


<!-- Overall Structure -->

<xsd:element name="MuskokaSite">
<!-- <xsd:attribute name="url" type="xsd:string" fixed="http://www.muskokacabco.com"/> -->
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="DoorStyles"/>
      <xsd:element ref="Colours"/>
      <xsd:element ref="Accessories"/>
      <xsd:element ref="TamarackModels"/>
     </xsd:sequence>
  </xsd:complexType>
</xsd:element>

</xsd:schema>

So I reference each type about 3 times, but in excel it only lets me map each type once if I choose as root. I would have loved to include a screenshot but apparently new users can’t do that…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:47:40+00:00Added an answer on June 5, 2026 at 5:47 am

    So apparently the “maxOccurs” attribute on elements defaults to one. I set it to “unbounded” and it works now.

        <xsd:group name="DoorStyles">
          <xsd:sequence>
            <xsd:element ref="DoorStyle" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:group>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long time reader, first time poster. Working on a web site at http://www.howardpitch.com/ ,
First time poster, long time reader. I've been having a problem with figuring this
I'm a long time reader first time poster, glad to start participating in this
Hy everyone, Long time reader, first time poster. This sounds like it should be
Long time reader, first time poster. Any help is greatly appreciated. I have crafted
first time poster, long time reader so be gentle with me :) See the
long time reader, first time poster. I’m coming with an issue that many of
Long time reader, first time poster. I'm a big noob when it comes to
Long time reader, first time poster asks: After many weeks of google and forum
Long time reader, first time poster. One day I hope to be answering questions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.