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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:41:38+00:00 2026-06-11T15:41:38+00:00

So I`m trying to build a web service to validate a XML from a

  • 0

So I`m trying to build a web service to validate a XML from a Schema. My problem is the following :
When I use this XML :

<?xml version="1.0" encoding="utf-8"?>
<!--Creat la data 5/13/2007 2:15:00 PM-->
<ListaCase xmlns="ListHNS-schema">
<Casa strada="florilor">
 <nr>Sgt. Pepper's Lonely Hearts</nr>
<cod>The Beatles</cod>
<oras>Teora</oras>
<tara>1967</tara>
 </Casa>
 <Casa strada="teilor">
<nr>Dark Side Of The Moon</nr>
<cod>Pink Floyd</cod>
<oras>Corint</oras>
<tara>1973</tara>

against this schema :

<?xml version="1.0" encoding="utf-16"?>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified"      version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsd:element name="ListaCase">
 <xsd:complexType>
  <xsd:sequence>
    <xsd:element name="Casa">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="nr" type="xsd:string" />
          <xsd:element name="cod" type="xsd:string" />
          <xsd:element name="oras" type="xsd:string" />
          <xsd:element name="tara" type="xsd:int" />
        </xsd:sequence>
        <xsd:attribute name="strada" type="xsd:string" />
      </xsd:complexType>
    </xsd:element>
   </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
 </xsd:schema>

My Visual Studio says he can`t find the schema. But when I use another schema and another XML everything works. Does anybody know what the problem is?

  • 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-11T15:41:39+00:00Added an answer on June 11, 2026 at 3:41 pm

    I changed your schema:

    <?xml version="1.0" encoding="utf-16"?>
    <xsd:schema 
    attributeFormDefault="unqualified" 
    elementFormDefault="qualified"      
    version="1.0" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <xsd:element name="ListaCase">
     <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Casa" maxOccurs="unbounded">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="nr" type="xsd:string" />
              <xsd:element name="cod" type="xsd:string" />
              <xsd:element name="oras" type="xsd:string" />
              <xsd:element name="tara" type="xsd:int" />
            </xsd:sequence>
            <xsd:attribute name="strada" type="xsd:string" />
          </xsd:complexType>
        </xsd:element>
       </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
     </xsd:schema>
    

    Please note the maxOccurs="unbounded" attribute on

    <xsd:element name="Casa">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a web service and a client for this service. I'm
I'm trying to build a generic web service interface using WCF, to allow 3rd
I'm trying to build the proxy class for a web service using the wsdl
I am trying to build a web service to interact with a mobile application
I am trying to build a real-time web service that deals with dynamic 10k
I'm trying to build a simple web service which return a list of shows
I'm trying to build a JAX-RS based web service using IBM RAD 7.5.5 (which
I'm trying to build a web-service, which will receive large files and save them
I am trying to build a web service that will stream music over a
I am trying to build a RESTFUL Web Service however I am getting an

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.