Target Namespace of an attribute declaration must not match XMLShema-instance

I'm new to XML and I've run into the following error (I'm using oXygen):

SystemID: \Desktop\XML Import2\xsi.xsd
Location: 6:40
Description: no-xsi: The {target namespace} of an attribute declaration must not match ''.

Below is a copy of the XSD document "xsi.xsd"

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="" elementFormDefault="qualified"
  <xs:import namespace=""
  <xs:import namespace=""
  <xs:import namespace=""
  <xs:attribute name="schemaLocation"/>

Can you point me in the right direction?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gertone (Geert Bormans)Information ArchitectCommented:
Hi Conkshell,
> targetNamespace=""

you cannot do that,
if you give the document a targetNamespace equal to the schema-instance namespace,
you are sort of overwriting that namespace, and you need it (though you only need it in the instance, not in the schema)

in targetNamespace, you should give the name of this specific schema's namespace
(actually this says, invent yourself a name, just make sure it is unique)

targetNamespace="urn:org:Conkshell:schemas:first-trial-schema" would work


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.