读书人

xsd报错the prefix quot;xmlquot; cannot be

发布时间: 2012-03-22 17:43:57 作者: rapoo

xsd报错,the prefix "xml" cannot be bound to any namespace other its usual ...
<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".
请高人指点指点

[解决办法]
<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">

读书人网 >Java Web开发

热点推荐