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 8235979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:59:56+00:00 2026-06-07T18:59:56+00:00

I am creating an XSD for the following XML structure: <BaseNode> <ParentNode1> <childnode/> </ParentNode1>

  • 0

I am creating an XSD for the following XML structure:

<BaseNode>
  <ParentNode1>
    <childnode/>
  </ParentNode1>
  <ParentNode2>
    <childnode/>
  </ParentNode2>
  <ParentNodeA>
    <childnode/>
  </ParentNodeA>
  <ParentNodeB>
    <childnode/>
  </ParentNodeB>
</BaseNode>

Where: ParentNodes 1 and 2 must appear and in order, and A and B are optional (and will only appear once each, if present), but must appear after 1 and 2 if present.

What I ‘think’ will work is the following, but is it valid? (specifically, the presence of both, sequence and all Order Indicators)

<xs:element name="BaseNode">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ParentNode1">
        ....
      </xs:element>
      <xs:element name="ParentNode2">
        ....
      </xs:element>
    </xs:sequence>
    <xs:all>
      <xs:element name="ParentNodeA">
        ....
      </xs:element>
      <xs:element name="ParentNodeB">
        ....
      </xs:element>
    </xs:all>
  </xs:comlexType>
</xs:element>

I couldn’t find any reference (in w3schools.com or elsewhere) to compound use of order indicators, and don’t have a validator readily available.

Thank you in advance.

  • 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-07T18:59:57+00:00Added an answer on June 7, 2026 at 6:59 pm

    I found the answer at http://www.w3.org/TR/xmlschema-0/#groups

    XML Schema stipulates that an all group must
    appear as the sole child at the top of a content model.

    example provided at the link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an XML file in C# using a XSD Schema of an
I'm creating an xml file and have an XSD file to work against. I'm
Is it possible using one or more XSDs to validate the following xml structure
I am creating my first XSD, as I have a 4MB XML file I
I have a library I am creating based on some WSDL/XSD definitions. I am
Error creating bean with name 'sessionFactory' defined in class path resource [ApplicationContext.xml]: Invocation of
How do I configure CFWheels to display the following XML at http://mydomain.com/sitemap.xml ? <?xml
We're creating a system outputting some data to an XML schema. Some of the
When creating/deploying war files, I use a in my web.xml to define which property
I am creating XML out of Dataset by dataset.GetXML() method. I want to add

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.