| Author |
xml schema error
|
mark crannage
Greenhorn
Joined: Jul 15, 2006
Posts: 13
|
|
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
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
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
My question is, why do you think there is anything wrong with it?
|
 |
 |
|
|
subject: xml schema error
|
|
|