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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:43:40+00:00 2026-05-20T11:43:40+00:00

<?xml version=1.0 encoding=UTF-8?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema targetNamespace=http://example.com/venue-listing> <xs:attribute name=lang default=en> <xs:simpleType> <xs:restriction base=xs:string> <xs:pattern value=en|zh

  • 0
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/venue-listing">
    <xs:attribute name="lang" default="en">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:pattern value="en|zh" />
            </xs:restriction>
        </xs:simpleType>
    </xs:attribute>
    <xs:element name="site">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="venue">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="url" type="xs:string" />
                            <xs:element name="venue_nm" type="xs:string" />
                            <xs:element name="address" type="xs:string"/>
                            <xs:element name="tags">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="tag" type="xs:string" />
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="id" type="xs:string" use="required" />
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
            <xs:attribute name="source" type="xs:integer" use="required" />
        </xs:complexType>
    </xs:element>
</xs:schema>

Now the validation just saying cvc-complex-type.2.4.a: Invalid content was found starting with element ‘venue’. One of ‘{venue}’ is expected. venues.xml

<site source="21" xmlns="http://example.com/venue-listing">
    <venue id="333048">
              ....
    </venue>
    <venue id="323">
              ....
    </venue>
</site>
  • 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-20T11:43:41+00:00Added an answer on May 20, 2026 at 11:43 am

    Per this schema, element venue must occur exactly once, hence

    [Not more than] One of '{venue}' is expected.

    For allowing multiple venues, use

    <xs:element name="venue" maxOccurs="unbounded">
    

    The default of maxOccurs is 1 (see XML Schema spec).

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

Sidebar

Related Questions

I have a header common in all activities. header.xml <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
I'm trying to query an xml file using the following xslt: <xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform
There is a schema with the following boring root element: <?xml version=1.0 encoding=utf-8?> <xs:schema
I have a snippet of an XML file that looks like: <?xml version=1.0 encoding=utf-16?>
I've set up a queue by configuring it in activemq.xml (ActiveMQ version 5.2.0) as
The XML Schema Part 2 specifies that an instance of a datatype that is
Let's say I have following Spring config (version of Spring is 3.0.3): <?xml version=1.0
I am trying to manipulate xsd schema as an xml document that should not
As recommended by http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-static-resources I wish to use <mvc:resources> for serving my spring static
This XML file contained archived news stories for all of last year. I was

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.