【发布时间】:2016-11-08 15:17:41
【问题描述】:
因此,我正在尝试针对本地硬盘上存在的架构验证 XML 消息,该架构利用 Microsoft 使用 XML 记事本和 XML 复制编辑器更新克,并且遇到了一些障碍。即,我收到此错误...
第 1 行第 61 列出错:尝试验证以下代码时未找到元素“ROOT”的声明...
<ROOT xmlns:updg="urn:schemas-microsoft-com:xml-updategram">
<updg:sync mapping-schema="C:\Dev\Backup\vb script\4bogdang\mm2Messages_1_11_SQL.xsd">
<updg:before></updg:before>
<updg:after>
<customTextRsp>
<action>complete</action>
<source>{07518bdd-226b-41a7-a662-a66000954e26}</source>
<deviceType>MM2BIN</deviceType>
<customText>
<language>English</language>
<index>1</index>
<buttonText1></buttonText1>
<buttonText2></buttonText2>
<feeDisclaimer1></feeDisclaimer1>
<feeDisclaimer2></feeDisclaimer2>
<receiptFeeText1></receiptFeeText1>
<receiptFeeText2></receiptFeeText2>
<receiptPayout1></receiptPayout1>
<receiptPayout2></receiptPayout2>
<receiptTitle1></receiptTitle1>
<receiptTitle2></receiptTitle2>
<receiptTitle3></receiptTitle3>
<receiptTitle4></receiptTitle4>
<receiptFooter1></receiptFooter1>
<receiptFooter2></receiptFooter2>
<receiptFooter3></receiptFooter3>
<receiptFooter4></receiptFooter4>
<reportTitle1></reportTitle1>
<reportTitle2></reportTitle2>
<reportTitle3></reportTitle3>
<reportTitle4></reportTitle4>
<reportFooter1></reportFooter1>
<reportFooter2></reportFooter2>
<reportFooter3></reportFooter3>
<reportFooter4></reportFooter4>
<screenText1a></screenText1a>
<screenText1b></screenText1b>
<screenText2></screenText2>
<pleaseTakeReceipt></pleaseTakeReceipt>
<disclaimer></disclaimer>
<disclmBtnText></disclmBtnText>
<agreeBtnText></agreeBtnText>
</customText>
</customTextRsp>
</updg:after>
</updg:sync>
</ROOT>
如错误所示,此行出现问题...
<ROOT xmlns:updg="urn:schemas-microsoft-com:xml-updategram">
我根据here 找到的样本检查了它的编写方式,并且骨灰盒看起来是正确的。对于 XML Copy Editor,我是否需要以某种方式将其包含在目录文件中?如果是这样,在目录文件中输入它的正确方法是什么? (不幸的是,我对使用这个工具有点陌生。)
我想我的第二个问题是我用于测试的环境是否可能缺少文件?我安装了 Microsoft SQL Server 2014,所以我假设 updategram 支持已经到位,因为它是根据我的搜索在几年前添加的。
【问题讨论】:
标签: xml validation sql-server-2012