Meaningless Drivel is fun!
The moose likes XML and Related Technologies and the fly likes xml schema error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml schema error" Watch "xml schema error" New topic

xml schema error

mark crannage

Joined: Jul 15, 2006
Posts: 13

Can someone tell me what is wrong with the below xml schema ?
I am can't see anything wrong with it, but the number of namespaces in it are confusing.



<?xml version = "1.0" encoding = "UTF-8"?>
<!--Generated by Turbo XML. Conforms to w3c>
<xsd:schema xmlns = ""
targetNamespace = ""
xmlns:xsd = ""
elementFormDefault = "qualified">
<xsd:element name = "order">
<xsd:element name = "orederid" type = "xsd:string"/>
<xsd:element name = "name" type = "xsd:string"/>
<xsd:element name = "phone" type = "xsd:string"/>
<xsd:element name = "email" type = "xsd:string"/>
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Not sure what your question is, but my understanding is that you are confused about the entries related to namespace, right?

There are two namespaces used in this bit of XML. One is 'xsd' which is the standard XML Schema namespace. The second is your personal namespace, which BTW is also the default namesapce. It is called the default namespace because you did not give a prefix to that namespace when you declared it.

Hope that help. If there are other questions please let us know.

- m

Take a Minute, Donate an Hour, Change a Life
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

My question is, why do you think there is anything wrong with it?
I agree. Here's the link:
subject: xml schema error
It's not a secret anymore!