473,417 Members | 1,569 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,417 software developers and data experts.

Help with Schema validation issue

I am kind of new with building a schema and being able to validate a XML file against the schema stored on our web site. I have schema that I have built that resides at:

http://www.payrolltaxpeople.com/XMLS...xInterface.xsd

I have built a test file that I want to validate against the schema, yet every time I try to run the validation in XMLSpy it returns a message stating:

File S:\DONPC\Work1\qtrfile01.xml could not be validated because of an error in XML Schema/DTD (see below)
Unable to load a schema with target namespace 'http://www.payrolltaxpeople.com/XMLSchema' from 'QuarterlyTaxInterface.xsd'.
Error location: QuarterlyTaxInterface
Details
schema_reference: Unable to load a schema with target namespace 'http://www.payrolltaxpeople.com/XMLSchema' from 'QuarterlyTaxInterface.xsd'.


Below is the first portion of my test file:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <QuarterlyTaxInterface 
  3. xmlns="http://www.payrolltaxpeople.com/XMLSchema"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.payrolltaxpeople.com/XMLSchema QuarterlyTaxInterface.xsd">
  5. <QuarterlyFileHeader>
  6. <DocumentVersion>2009</DocumentVersion>
  7. <Level>A</Level>
  8. <AffiliateId>TPP</AffiliateId>
  9. <DateFileCreated>2010-02-01</DateFileCreated>
  10. </QuarterlyFileHeader>  ... more data follows
Can some point me in the right direction in terms of what I have wrong in order for the validation to occur agains the schema stored on the web site?

Thanks!
Feb 2 '10 #1
1 3883
dgreenhouse
250 Expert 100+
You're missing the directory separator before the actual xsd file.

xsi:schemaLocation="http://www.payrolltaxpeople.com/XMLSchema|QuarterlyTaxInterface.xsd

I added a pipe character to show the position where the omission is located.
Feb 3 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Robert Lintner | last post by:
Hi, I woult like to switch from DTD to XML-Schema and am looking for an equivalent to external ENTITY for composition of an xml file from modules --- my.dtd -- <?xml version="1.0"...
1
by: Zandy Marantal | last post by:
Hello everyone, I'm having trouble using Xerces2(2.4, 2.5) when validating against an XML schema if a general entity reference is defined within the XML file. The error I'm getting is this:...
2
by: Olaf Meyer | last post by:
Apprentently xerces 2.6.0 (Java) does not validate against contraints specified in the schema (e.g. constraints specified via unique element). The validation works with the XML editor I'm using...
1
by: eXavier | last post by:
Hi, I need to validate XML fragment against XSD schema. The main issue is that xml fragment does not contain refrence to schema, but I want to force the validation against the schema I have in...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
4
by: Iain A. Mcleod | last post by:
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set...
5
by: Damian Burrin | last post by:
Hi guy's i'm v new to this and probably getting this wrapped right round my head, but why can't i use something like wc3 to validate this. -----------------XML--------------------------- <?xml...
0
by: Mark Parter | last post by:
I'm trying convert an XML Schema (http://www.elframework.org/projects/xcri/efc_r1.0.xsd/view) to a VB.Net class using the XSD tool provided with the .NET 2 SDK. However, it's failing to generate...
9
by: mstilli | last post by:
Hi, I am trying to use schema for server side validation using xerces to catch the validation errors. validating this XML: <Content4> <textarea13></textarea13>...
3
by: dantohester | last post by:
Hi there, I have the following situation: I want to create an XML document that contains 2 parts: a) a XHTML part (it can be either version 1.0 or 1.1 ) b) a non XHTML part that contains some...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...
0
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...

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.