473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem creating schema

I created a Schema (see below) in VS.NET. I then tried to create an XML
document so that I could enter data for it. It gives me the error "An
Error occurred while loading the schema with targetNameSpace
"http://tempuri.org/Folderlist.xsd" referenced in the document. Index(zero
based) must be greater than or equal to zero and less than the size of the
argument list."

Any ideas what could be causing this?

Andy D

XSD:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Folderlist"
targetNamespace="http://tempuri.org/Folderlist.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/Folderlist.xsd"
xmlns:mstns="http://tempuri.org/Folderlist.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Folders">
<xs:sequence>
<xs:element name="BackupSets" type="BackupSet"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="BackupSet">
<xs:sequence>
<xs:element name="FoldersToBackup" type="FolderList"
maxOccurs="1" minOccurs="1" />
<xs:element name="DestinationFolder" type="xs:string"
maxOccurs="1" minOccurs="1" />
<xs:element name="BackupTime" type="xs:time"
minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="FolderList">
<xs:sequence>
<xs:element name="Folder" type="xs:string" minOccurs="1"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:schema>

XML file:

<?xml version="1.0" encoding="utf-8" ?>
<root xmlns="http://tempuri.org/Folderlist.xsd"></root>
Nov 11 '05 #1
1 2024
Andrew Ducker <An****@Ducker.org.uk> wrote in
news:Xn*******************************@207.46.248. 16:
I created a Schema (see below) in VS.NET. I then tried to create an
XML document so that I could enter data for it. It gives me the error
"An Error occurred while loading the schema with targetNameSpace
"http://tempuri.org/Folderlist.xsd" referenced in the document.
Index(zero based) must be greater than or equal to zero and less than
the size of the argument list."

Any ideas what could be causing this?


Following this - I tried creating an XML file and using "create schema" to
see if I could do that. Miracle of Miracles it worked. So I copied the
contents of the XML file into a new one. Which didn't work. So I quit
Visual Studio and reopened it and then neither of them worked.

I suspect it's not finding the xsd file at all. Is there something that
redirect http://tempuri.org to the local files? Or some kind of setting I
need to look into?

Andy D
Nov 11 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andrei Ivanov | last post by:
This happend again, but now, postgresql tells me where it happens: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: did not find '}' at end of input node pg_dump: The...
4
by: Piet | last post by:
Folks, I need to create a schema for legacy xml data where the sequence of child elements is part of the semantics. The problem is that I have no succeeded in creating a schema that allows...
5
by: Jeffry van de Vuurst | last post by:
Hi, I'm working on an xml schema and I'm running into some problems relating substitutionGroups and extensions. This xsd validates fine: There are three elements and three complex types and...
3
by: junlia | last post by:
We are using ACORD xml schema standard, and we need to add to it, so we choose to redefine ACORD xml schema. One of the problems that I ran into is how to add some values to an emumerated list. ...
1
by: Vikky | last post by:
Hi All: I have a problem with DB2 locking scheme. I am dealing with two processes modifying the DBMS (here IBM DB2 7.1 FP8 on Solaris) simulteneously. P1: Huge transactional data being...
3
by: Kiran | last post by:
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML ...
3
by: Sindarian | last post by:
I have a Schema from the folk that shows how they want the data received. I have my own database that has that data, but in a different way (they use 33 freaking tables to store what I do in 1)....
0
by: Kapil Joshi | last post by:
Hi, This issue is related to System.Xml.Serialization.XmlElementArrayAttribute class. We are using VS.NET 2005 (RTM) Professional Edition version 8.0.50727.42 (RTM.050727-4200)....
0
by: jackfrancy | last post by:
Hi , When I tried to create web reference (Proxy Class) from WSDL.EXE or Visual Studio 2003 web Reference Tool Following error has occurred . “The error message from each known type may help...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.