BizTalk2006架构编辑器同类型化DataSet设计器冲突

 安装BizTalk Server 2006出现BizTalk架构编辑器同类型化DataSet设计器冲突
郑佐 2006-11-1

在安装了BizTalk Server 2006后,Visual Studio 2005中原有类型化数据集设计器被屏蔽,变成了BizTalk Server 2006开发中使用的XML架构编辑器。如下图,

xml架构编辑器

 

查看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">

 

可 见在打开的时候xmlns=http://tempuri.org/DecEntryResultDataSet.xsd属性被替换成了xmlns:b= http://schemas.microsoft.com/BizTalk/2003。但改变后的元素属性不会写入xsd文件。

在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文件上点击右键选择“打开方式”菜单,可以看到数据集编辑器,选中该编辑器,点击“确定”按钮就可以图形化编辑该类型化数据集。当然也可以设置默认编辑器。

 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值