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

  • Home
  • SEARCH
  • 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 6190347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:34:22+00:00 2026-05-24T02:34:22+00:00

We have a generated XML schema that I am a bit confused on the

  • 0

We have a generated XML schema that I am a bit confused on the meaning of the schema (ie, what exactly it is looking for to be valid)

<xs:element name="element">
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" name="firstitem_id" type="xs:integer" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="seconditem_id">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:integer">
              <xs:attribute name="order" type="xs:integer" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="id" type="xs:integer" use="required" />
  </xs:complexType>
</xs:element>

From what I was told, this is really asking for the following:

<element>
  <firstitem_id>17</firstitem_id>
  <seconditem_id order="2">34</seconditem_id>
</element>

Is this true, and why would this specification show up in this manner?

  • 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-05-24T02:34:24+00:00Added an answer on May 24, 2026 at 2:34 am

    That schema fragment defines the following structural rules for the “element” element:

    • It’s name is “element”
    • It must have an “id” attribute with an integer value (your example does not)
    • The child element “firstitem_id”
      • is optional
      • can only be used once
      • it’s value must be an integer
      • and it must appear before “seconditem_id” if both elements are in the instance doc
    • The child element “seconditem_id”
      • is also optional
      • can appear more than once
      • it’s value must be an integer

    This is one valid example:

    <element id="1">
      <firstitem_id>17</firstitem_id>
      <seconditem_id order="2">34</seconditem_id>
    </element>
    

    This is another:

    <element id="2">
      <seconditem_id order="2">34</seconditem_id>
    </element>
    

    This is another:

    <element id="3">
      <firstitem_id>17</firstitem_id>
    </element>
    

    And another:

    <element id="4">
      <firstitem_id>17</firstitem_id>
      <seconditem_id order="2">34</seconditem_id>
      <seconditem_id order="3">35</seconditem_id>
    </element>
    

    And another:

    <element id="5">
      <seconditem_id order="2">34</seconditem_id>
      <seconditem_id order="3">35</seconditem_id>
    </element>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a schema fragment that looks like <xs:element name=dataValue> <xs:complexType> <xs:sequence> <xs:element name=value
I have an XML schema, where element Calling1 is defined like this: <xsd:element name=Calling1
I have an automatically generated XML file for the game that I run. It
I have two XML files that are generated by another application I have no
I have an application that displays the data from 3 xml files (auto generated
I have generated a LinqtoSQL mapping xml file, which I have a valid XSD
I have a schema from a third party that I've generated c# objects from
JAXB Generated classes only capture the structural information from the XML schema that is
I am using classes that were generated from an XML schema using the xsd.exe
We have some code that was generated, mostly likely by svcutil from an XML

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.