+ -
当前位置:首页 → 问答吧 → xsd报错,the prefix "xml" cannot be bound to any namespace other its usua

xsd报错,the prefix "xml" cannot be bound to any namespace other its usua

时间:2011-08-23

来源:互联网

<xsd:schema xmlns="http://www.w3.org/XML/1998/namespace" 
  targetNamespace="http://www.w3.org/XML/1998/namespace" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  elementFormDefault="qualified">
报错如下
The prefix "xml" cannot be bound to any namespace other than its usual namespace; neither can the namespace for "xml" be bound to any prefix other than "xml".
请高人指点指点

作者: shencai123   发布时间: 2011-08-23

<xsd:schema 
  targetNamespace="http://www.w3.org/XML/1998/namespace" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  elementFormDefault="qualified">

或者干脆

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

作者: zhouyuqwert   发布时间: 2011-08-24

热门下载

更多