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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:08:29+00:00 2026-05-29T05:08:29+00:00

I have an XML schema document (provided by a company I deal with) to

  • 0

I have an XML schema document (provided by a company I deal with) to validate a certain XML file that is required for their system.

Lets say the first couple of lines of the schema look like this (I have modified the URIs to protect the guilty!):

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.example.com/manifest-plugin"
xmlns="http://www.example.com/manifest-plugin">

The URI in the XSD is not valid in the unmodified original i.e. you cannot go there to get a copy of this XSD file. I have no idea why they haven’t published it at the URL defined in the XSD, but they haven’t.

I have a local copy of the XSD which I would like to use to validate the XML file I create using the features of Eclipse’s XML catalog. Obviously, as the URI is invalid there is no point to let the system try to retrieve the XSD from the web.

Let’s say the local XSD file lives on my local drive here:

C:\xml_schemas\manifest-plugin.xsd

And the opening two lines of the XML file look like this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

Could anyone give an example of how to do this?

Specifically:

  1. What values do I set in the XML catalog dialog boxes in Eclipse, based on the values I have provided above?
  2. What do I put into the XML file to get it to validate against the local XSD, without confusing other systems which my read my XML file down the line?

I have found this page on the Eclipse wiki, but I personally don’t find the instructions very clear:-

Using the XML catalog in Eclipse

I have tried setting the XML catalog parameters thus:

  • Location : C:\xml_schemas\manifest-plugin.xsd
  • Key type : Namespace name
  • Key : http://www.example.com/manifest-plugin

Then adding

<manifest xmlns:targetNamespace="http://www.example.com/manifest-plugin">

to the XML file, but it doesn’t seem to work.

By the way, if your version of Eclipse doesn’t have the XML catalog, you probably haven’t got the “web tools platform (WTP)” features installed. They come with the Java EE version of Eclipse, but can be installed separately.

  • 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-29T05:08:30+00:00Added an answer on May 29, 2026 at 5:08 am

    If I’m not mistaken, you can specify a local schema location which will take precedence over the remote location of the XML Schema file.

    As such, if you put your XSD file in the directory where your XML files are, the header of your manifest.xml file should be:

    <manifest xmlns="http://my.super.xsd.com" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.w3schools.com manifest.xsd">
    

    I tested under Eclipse, it works (you can even click on the XSD link).
    Now, that works if both your XSD and XML files are in the same directory.

    If you want to have your XSD in a separate local location, you have to use the file protocol. Given your example, your XML file would look like so:

    <manifest xmlns="http://my.super.xsd.com" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.w3schools.com file:///C|/xml_schemas/manifest-plugin.xsd"">
    

    This example also works under Eclipse, although when clicking on the XSD, it opens the web browser (at least for me).

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

Sidebar

Related Questions

I have an XML Schema that I'm trying to create C# classes with. At
I have an XML schema that includes multiple addresses: <xs:element name=personal_address maxOccurs=1> <!-- address
I have a XML schema that I will need to create Java classes for.
I have an XML schema that represents a product in a DB, and I
I have an XML Schema Definition file .XSD who's elements are in Spanish. I
I have an XML file and an XML schema in another file and I'd
I have written a small XML validator, that takes in an XML file and
I have defined schema for xml in file packetTemplate.xsd.Using ms tool xsd.exe i have
I have an XML document that looks like this: <?xml version=1.0 encoding=UTF-8?> <xs:msgdata xmlns:xs=http://www.myCompany.com
I have some XML and an XML Schema in a local xsd file. The

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.