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 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>
Joined: Jun 03, 2000
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.