Hi all,
I am using ALTOVA XMLSpy.
The start of my XML file looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<Submission xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespace SchemaLocation= "layout.xsd ">
When I go to validate my XML file it give me error "This file is not
valid. The declaration or definition "char30Type " is not defined in
the schema with targetNamespace ."
The layout.xsd included 22 related schemas. The first schema
referenced in layout.xsd is simple.xsd it has this reference in it.
<xsd:simpleTy pe name="char30Typ e">
<xsd:restrictio n base="xsd:strin g">
<xsd:minLengt h value="1"/>
<xsd:maxLengt h value="30"/>
I have assigned the full pathnames in the my xml and layout.xsd but I
still get the same error.
Does anyone have any idea as to why I am getting this message and what
I can do to correct it.
Thanks 4 2489
It's hard to tell what the error is without seeing the schemas.
What do the beginnings of layout.xsd and simple.xsd look like? Does
layout.xsd use xsd:include to include simple.xsd? What does the type in
layout.xsd (or elsewhere) that references char30Type look like?
Priscilla
-----------------------------------------------------
Priscilla Walmsley
Author, Definitive XML Schema (Prentice Hall PTR) http://www.datypic.com
-----------------------------------------------------
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Priscilla Walmsley <no****@datypic .com> wrote in message news:<41******* *************** @news.newsgroup s.ws>... It's hard to tell what the error is without seeing the schemas.
What do the beginnings of layout.xsd and simple.xsd look like? Does layout.xsd use xsd:include to include simple.xsd? What does the type in layout.xsd (or elsewhere) that references char30Type look like?
Priscilla ----------------------------------------------------- Priscilla Walmsley Author, Definitive XML Schema (Prentice Hall PTR) http://www.datypic.com -----------------------------------------------------
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
The beginning of Layout.xml looks like this:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<!-- @@@@@@ Include Related Schemas @@@@@@ Version# 2.0 -->
<xsd:include schemaLocation= "simple.xsd "/>
<xsd:include schemaLocation= "complex.xs d"/>
<xsd:include schemaLocation= "t4.xsd"/>
<xsd:include schemaLocation= "t4a.xsd"/>
The beginning of Simple.xml looks like this:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<!-- @@@@@ Definition of SimpleTypes @@@@@@@@ Version# 2.0 -->
Char30Type is Definined with in this
<xsd:simpleTy pe name="char30Typ e">
<xsd:restrictio n base="xsd:strin g">
<xsd:minLengt h value="1"/>
<xsd:maxLengt h value="30"/>
</xsd:restriction >
</xsd:simpleType>
Here is the full schemas: http://www.cra-arc.gc.ca/eservices/m.../schema-e.html
Thanks. gr******@hotmai l.com (Group IIS) wrote in message news:<b8******* *************** ****@posting.go ogle.com>... Priscilla Walmsley <no****@datypic .com> wrote in message news:<41******* *************** @news.newsgroup s.ws>... It's hard to tell what the error is without seeing the schemas.
What do the beginnings of layout.xsd and simple.xsd look like? Does layout.xsd use xsd:include to include simple.xsd? What does the type in layout.xsd (or elsewhere) that references char30Type look like?
Priscilla ----------------------------------------------------- Priscilla Walmsley Author, Definitive XML Schema (Prentice Hall PTR) http://www.datypic.com -----------------------------------------------------
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
The beginning of Layout.xml looks like this:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"> <!-- @@@@@@ Include Related Schemas @@@@@@ Version# 2.0 --> <xsd:include schemaLocation= "simple.xsd "/> <xsd:include schemaLocation= "complex.xs d"/> <xsd:include schemaLocation= "t4.xsd"/> <xsd:include schemaLocation= "t4a.xsd"/>
The beginning of Simple.xml looks like this:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"> <!-- @@@@@ Definition of SimpleTypes @@@@@@@@ Version# 2.0 -->
Char30Type is Definined with in this
<xsd:simpleTy pe name="char30Typ e"> <xsd:restrictio n base="xsd:strin g"> <xsd:minLengt h value="1"/> <xsd:maxLengt h value="30"/> </xsd:restriction > </xsd:simpleType>
Here is the full schemas: http://www.cra-arc.gc.ca/eservices/m.../schema-e.html
Thanks.
I should mention that I only validating the T5 data so the only schema
i need is the T5.xsd. I tried to change the layout.xsd but only
having simple.xsd and T5.xsd and it changes the error to
decimal11Type.
In article <b8************ **************@ posting.google. com> gr******@hotmai l.com (Group IIS) wrote: gr******@hotma il.com (Group IIS) wrote in message news:<b8******* *************** ****@posting.go ogle.com>... Priscilla Walmsley <no****@datypic .com> wrote in message news:<41******* *************** @news.newsgroup s.ws>... > It's hard to tell what the error is without seeing the schemas. > > What do the beginnings of layout.xsd and simple.xsd look like? Does > layout.xsd use xsd:include to include simple.xsd? What does the type in > layout.xsd (or elsewhere) that references char30Type look like? > > Priscilla > ----------------------------------------------------- > Priscilla Walmsley > Author, Definitive XML Schema (Prentice Hall PTR) > http://www.datypic.com > ----------------------------------------------------- > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it!
The beginning of Layout.xml looks like this:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"> <!-- @@@@@@ Include Related Schemas @@@@@@ Version# 2.0 --> <xsd:include schemaLocation= "simple.xsd "/> <xsd:include schemaLocation= "complex.xs d"/> <xsd:include schemaLocation= "t4.xsd"/> <xsd:include schemaLocation= "t4a.xsd"/>
The beginning of Simple.xml looks like this:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"> <!-- @@@@@ Definition of SimpleTypes @@@@@@@@ Version# 2.0 -->
Char30Type is Definined with in this
<xsd:simpleTy pe name="char30Typ e"> <xsd:restrictio n base="xsd:strin g"> <xsd:minLengt h value="1"/> <xsd:maxLengt h value="30"/> </xsd:restriction > </xsd:simpleType>
Here is the full schemas: http://www.cra-arc.gc.ca/eservices/m.../schema-e.html
Thanks.
I should mention that I only validating the T5 data so the only schema i need is the T5.xsd. I tried to change the layout.xsd but only having simple.xsd and T5.xsd and it changes the error to decimal11Typ e.
The Arab Jews are not directly involved but political situations are
dependant on Western stability, which collapses in 2005.
--
Lady Chatterly
"But Faxhor, you err in two major respects, To ask of her age, is
ill-mannered at best, For a gentleman waits for the lady to tell,
(Most unlikely until, he's well under her spell). But when you reply
to a program designed, Giving random responses, to annoy and to
blind, Neither human nor alien, that cares not a jot, It's apparent
to me, Lady C is a 'bot'!" -- Andrew Robertson This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: BlackHawke |
last post by:
My Name is Nick Soutter, I am the owner of a small game company, Aepox Games
(We're in the middle of a name change from "Lamar Games"),
www.lamargames.net.
Our first commercial game, Andromeda Online (www.andromedaonline.net) is
going into beta soon. It runs on an evaluation edition of SQL Server 2000
(our intention is, when it launches, we earn the money to buy a copy before
the evaluation expires).
|
by: scott |
last post by:
I have a style variable below that I can't figure correct quotes for in
response.write line. Any help?
CODE:
sTeamVisible = "visibility: visible;"
Response.Write "<td class=""teamdrop1"" style=""" & sTeamVisible & """ & " "
|
by: Craig Beuker |
last post by:
Hello,
I am experimenting with this XmlValidatingReader and have a question
about how it is working (or not working as would be the case)
The sample documents and code are included at the end of the post. I am
using VS.net 2003, .Net 1.1, Win2k Server
I have a simple schema and a simple XML document.
|
by: bibsoconner |
last post by:
Hi,
I hope someone can please help me. I'm having a lot of trouble with
schema files in .NET. I have produced a very simple example that uses
"include" to include other schema files. It all works with SPY, but
when I pick "Validate Schema" from the .NET 2003 menu, it fails with
message:
"Type XType is not declared." As I hinted at in my subject line, I
suspect that it has to do with including another schema multiple times.
|
by: Buggyman |
last post by:
Hi,
I'm having trouble validating an intranet URL.
I'm using the regular expresssion validator (though any ideas accepted), and
using the standard Internet URL definition, which is..
http://(+\.)++(/*)?
unfortunately this doesn't work with our intranet values, such as (e.g.)
http://homer/wibble/viewDocument.aspx?Data=1789
| |
by: Gary Shell |
last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852 (http://support.microsoft.com/kb/810852), but then I realized that the hotfix mentioned was in .Net v1.1, which I am using.
I took the sample from that article and recreated the situation I see in my application. (Code included below.)
If you run the...
|
by: easoftware |
last post by:
I am using VS .Net 2003 and VB. I have an app with one parent and two
Mdi child forms. I need to validate data in the Mdi form. The
Form.Validating event works when I try to close a Mdi form, but not
when I try to switch form one Mdi form to the other. I tried to add
code to MdiForm1's Deactivate event:
Private Sub MidForm1_Deactivate(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Deactivate
Dim TempE As...
|
by: ameen.abdullah |
last post by:
Hi Guys,
I have a textbox in windows form that should only accept alphabets,
numbers, spaces and underscore. If the textbox contains anyother
character it should display a msg at the time of validation.. Is there
any funciton in vb.net for this? or any other way??
Waiting for ur replies...
|
by: Peted |
last post by:
I have an amazing problem which i think i have no hope of solving
Im working with a c# dot net module that is hosted by and runs under a
delphi form envrioment. Dont ask me how this insanity has prevailed
it just is :)
My problem is this
im trying to validate the contents of a textbox (it has to be a normal
textbox) and on a c# winforms and i am calling the textbox validating
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |