现在的位置: 首页 > 综合 > 正文

BizTalk 2006 Schema编辑器同DataSet设计器冲突现象

2013年08月28日 ⁄ 综合 ⁄ 共 1727字 ⁄ 字号 评论关闭
BizTalk 2006 Schema编辑器同DataSet设计器冲突现象
作者:郑佐
日期:2006-11-1
在安装了BizTalk Server 2006后,Visual Studio 2005中原有类型化数据集设计器被屏蔽,变成了BizTalk Server 2006开发中使用的XML架构编辑器。如下图,
Biztalk_dataset_error
 
查看xml文档内容发现xs:schema主节点属性发生了改变,
<xs:schema
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
    xmlns:mstns="http://tempuri.org/DecEntryResultDataSet.xsd"
    xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
    xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://tempuri.org/DecEntryResultDataSet.xsd"
    id="DecEntryResultDataSet"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
使用文本编辑器打开DecEntryResultDataSet.xsd文件,显示正确内容为,
<xs:schema
    xmlns:mstns="http://tempuri.org/DecEntryResultDataSet.xsd"
xmlns="http://tempuri.org/DecEntryResultDataSet.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
    xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"
targetNamespace="http://tempuri.org/DecEntryResultDataSet.xsd"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    id="DecEntryResultDataSet">
 
在Visual Studio 2005中添加xml架构文件(XSD)生成的正常根节点内容为,
<xs:schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
在VS2005中打开的时候变成为,
<xs:schema
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
 
在VS2005中进行添加强类型数据集(XSD)操作,无法显示数据集设计器,被BizTalk 架构编辑代替了。
 
一种处理办法是在项目的xsd文件上点击右键选择“打开方式”菜单,可以看到数据集编辑器,选中该编辑器,点击“确定”按钮就可以图形化编辑该类型化数据集。当然也可以设置默认编辑器。

抱歉!评论已关闭.