以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  求助,xml高手  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=28347)


--  作者:antjiece
--  发布时间:3/9/2006 3:09:00 PM

--  求助,xml高手
使用xmlspy2006检查xml文件是否格式良好时,总是提示
“期望 Whitespace (Blank, Tab, CR, LF)。”
强制保存后,使用浏览器打开该xml文档,则显示:

缺少所需的空白区。处理资源 'file:///E:/医学信息标准/论文/xml/sample2.xml' 时出错。第 2 行,位置: 53

<!DOCTYPE levelone PUBLIC "MML_3.0_levelone_1.0.dtd">

下面附上我的xml文档的开头部分
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE levelone PUBLIC "MML_3.0_levelone_1.0.dtd">
<levelone xmlns:claim="http://www.medxml.net/claim/CHN/claimModule/2.1"
xmlns:claimA="http://www.medxml.net/claim/CHN/claimAmountModule/2.1"
xmlns:mml="http://www.medxml.net/MML"
xmlns:mmlAd="http://www.medxml.net/MML/SharedComponent/Address/1.0"
xmlns:mmlBc="http://www.medxml.net/MML/ContentModule/BaseClinic/1.0"
xmlns:mmlCi="http://www.medxml.net/MML/SharedComponent/CreatorInfo/1.0"
xmlns:mmlCm="http://www.medxml.net/MML/SharedComponent/Common/1.0"
xmlns:mmlDp="http://www.medxml.net/MML/SharedComponent/Department/1.0"
xmlns:mmlFc="http://www.medxml.net/MML/SharedComponent/Facility/1.0"
xmlns:mmlFcl="http://www.medxml.net/MML/ContentModule/FirstClinic/1.0"
xmlns:mmlHi="http://www.medxml.net/MML/ContentModule/CHNHealthInsurance/1.0"
xmlns:mmlLb="http://www.medxml.net/MML/ContentModule/test/1.0"
xmlns:mmlLs="http://www.medxml.net/MML/ContentModule/Lifestyle/1.0"
xmlns:mmlNm="http://www.medxml.net/MML/SharedComponent/Name/1.0"
xmlns:mmlPc="http://www.medxml.net/MML/ContentModule/ProgressCourse/1.0"
xmlns:mmlPh="http://www.medxml.net/MML/SharedComponent/Phone/1.0"
xmlns:mmlPi="http://www.medxml.net/MML/ContentModule/PatientInfo/1.0"
xmlns:mmlPsi="http://www.medxml.net/MML/SharedComponent/PersonalizedInfo/1.0"
xmlns:mmlRd="http://www.medxml.net/MML/ContentModule/RegisteredDiagnosis/1.0"
xmlns:mmlRe="http://www.medxml.net/MML/ContentModule/Referral/1.0"
xmlns:mmlRp="http://www.medxml.net/MML/ContentModule/report/1.0"
xmlns:mmlSc="http://www.medxml.net/MML/SharedComponent/Security/1.0"
xmlns:mmlSg="http://www.medxml.net/MML/ContentModule/Surgery/1.0"
xmlns:mmlSm="http://www.medxml.net/MML/ContentModule/Summary/1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

已经折磨了我很久,急求帮助!!!!!


--  作者:ssqy
--  发布时间:3/22/2006 9:06:00 AM

--  
对于你这种格式表示的dtd文件,要把PUBLIC换成SYSTEM
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms