Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Only one child element seems to be allowed

Avatar of allmer
allmerFlag for Turkey asked on
Web Languages and StandardsXML
2 Comments1 Solution251 ViewsLast Modified:
Dear Experts,
In the code I am trying to allow an unlimited number of children (type Switch) in the Switches element.
However whenever I try to validate the XML I get an error telling me that
the element Switch is not expected to follow the element Switch (in essence).
I removed some attributes to make the xsd shorter so in regards to the attributes the below won't be valid.

Any ideas?
        <Switch prefix="/" switch="?" value="" precedence="1" description="Display help message" ></Switch>
        <Switch prefix="/" switch="all" value="" precedence="2" description="Display full configuration information."></Switch>
        <Switch prefix="/" switch="release" value="" precedence="3" description="Release the IP address for the specified adapter."/>
              <xsd:element name="Switches"  minOccurs="0" maxOccurs="1">
                    <xsd:element name="Switch">
                        <xsd:attribute name="precedence" type="xsd:string" />
                        <xsd:attribute name="optional" type="xsd:string" />
                        <xsd:attribute name="description" type="xsd:string" />
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)Flag of Belgium imageInformation Architect
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers