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

qingyuan18 2007-07-26 11:05:02
这个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>

...全文
916 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qingyuan18 2007-08-05
  • 打赏
  • 举报
回复
to:sureyor()
<xsd:restriction base="tadig-gen:genericSchemaVersionType">这个类型定义在tadig-gen命名空间的xml Schema中定义了的,在<xsd:import namespace="https://infocentre.gsm.org/TADIG-GEN" schemaLocation="tadig-gen-2.0.xsd"/>
中引入,只不过我没有把这个文档贴上来,这是没有问题的
sureyor 2007-07-27
  • 打赏
  • 举报
回复
<xsd:restriction base="tadig-gen:genericSchemaVersionType">

tadig-gen:genericSchemaVersionType是无效的类型

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧