Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml schema error

 
mark crannage
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

thanks,

mc

<?xml version = "1.0" encoding = "UTF-8"?>
<!--Generated by Turbo XML. Conforms to w3c http://www.w3.org/2001/XMLSchema-->
<xsd:schema xmlns = "http://xmlns.example.com/unique/default/namespace/1154191384390"
targetNamespace = "http://xmlns.example.com/unique/default/namespace/1154191384390"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
elementFormDefault = "qualified">
<xsd:element name = "order">
<xsd:complexType>
<xsd:sequence>
<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"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Pie
Posts: 20771
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is, why do you think there is anything wrong with it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic