当前位置: 代码迷 >> Java Web开发 >> XML Schema文件:Content is not allowed in prolog 的有关问题
  详细解决方案

XML Schema文件:Content is not allowed in prolog 的有关问题

热度:882   发布时间:2016-04-17 13:30:28.0
XML Schema文件:Content is not allowed in prolog 的问题!
这个xml的Schema文件到底有什么格式问题?每次载入时都会报:
“Content   is   not   allowed   in   prolog”
我检查了好几遍,并没有什么全拼的特殊字符啊什么的,格式应该没有问题啊

哪位高人帮忙看看,到底有什么地方不对,抛出的异常就定位到第二行第一列上:

<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<xsd:schema   xmlns:xsd= "http://www.w3.org/2001/XMLSchema "   xmlns:tadig-gen= "https://infocentre.gsm.org/TADIG-GEN "   xmlns:tadig-raex= "https://infocentre.gsm.org/TADIG-RAEX "   targetNamespace= "https://infocentre.gsm.org/TADIG-RAEX "   elementFormDefault= "qualified "   attributeFormDefault= "unqualified ">
    <xsd:import   namespace= "https://infocentre.gsm.org/TADIG-GEN "   schemaLocation= "tadig-gen-2.0.xsd "/>
<!--   ==========================================================================================   -->
<xsd:element   name= "TADIGRaexDataSchemaVersion ">
<xsd:simpleType>
<xsd:restriction   base= "tadig-gen:genericSchemaVersionType ">
<xsd:enumeration   value= "2.0 "/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!--   ==========================================================================================   -->
<xsd:simpleType   name= "destinationIdentifierValueType ">
<xsd:restriction   base= "xsd:string ">
<xsd:pattern   value= "([0-9]{1,15})|(Own|Other   Mobile|Fixed|Other) "/>
</xsd:restriction>
</xsd:simpleType>
<!--   ==========================================================================================   -->
<xsd:simpleType   name= "smsIWReceptionFromOtherSMSCType ">
<xsd:restriction   base= "xsd:string ">
<xsd:enumeration   value= "Y "/>
<xsd:enumeration   value= "N "/>
<xsd:enumeration   value= "AA19only "/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>



------解决方案--------------------
<xsd:restriction base= "tadig-gen:genericSchemaVersionType ">

tadig-gen:genericSchemaVersionType是无效的类型
  相关解决方案