如何读取数据集中的xml [英] How to read xml in dataset

查看:49
本文介绍了如何读取数据集中的xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个xml文件。我想在数据集中读取这个xml文件。但是我得到了一个错误。



继承其命名空间的嵌套表'链接'不能在不同的命名空间中有多个父表。



请帮帮我

Hi,
I have a xml file. I wann read this xml file in dataset. but i got an error.

"Nested table 'link' which inherits its namespace cannot have multiple parent tables in different namespaces. "

Please help me

推荐答案

交叉检查你的XML Schema ....如果你还没有得到解决方案......回来。



请参阅从XML文件创建数据集链接

http://www.xmlme.com/XmlToDS.aspx?mid=45



快乐编程......: - )



问候

Mayur Dighe

ImmortalDotNet.Blogspot.com

ImmortalDotNet.WordPress.com
Cross-check you XML Schema.... if still you don't get solution..come back.

see the link for "Create A Dataset From An XML File"
http://www.xmlme.com/XmlToDS.aspx?mid=45

Happy Programming...:-)

Regards
Mayur Dighe
ImmortalDotNet.Blogspot.com
ImmortalDotNet.WordPress.com


<BaggageAllowances>
      <BaggageAllowanceInfo>
        <URLInfo>
          <URL>MYTRIPANDMORE</URL>
        </URLInfo>
        <TextInfo>
          <Text>1P</Text>
          <Text>BAGGAGE</Text>
        <TextInfo>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>UPTO50LB</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>UPTO50LB</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
      </BaggageAllowanceInfo>
      <BaggageAllowanceInfo>
        <URLInfo>
          <URL>MYTRIPANDMORE</URL>
        </URLInfo>
        <TextInfo>
          <Text>1P</Text>
          <Text>BAGGAGE</Text>
        </TextInfo>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>158LCM</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>158LCM</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
      </BaggageAllowanceInfo>
      </BaggageAllowances>


这篇关于如何读取数据集中的xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆