多个复杂的Xml命名空间XDocument对象

时间:2017-07-19 16:46:54

标签: c# xml linq-to-xml xml-namespaces xml-documentation

我正在使用c#XDocument对象创建一个xml文档,但是文档中的命名空间非常复杂&找不到合适的解决方案。我试过从其他类似的线程中搜索和实现答案,但似乎由于某种原因而失败。

有人可以帮我解决这个问题吗。

以下是我要查找的文档命名空间:

   <abcd:orderinfo xmlns:abcd="http://example.com" OrderSchemaId="2017/abc-xyz/1234" 
    xmlns:ddex="http://example.com/1234"
    xmlns:abcd="http://example.com/20170718/xyz"
    xmlns:ms1234="http://example.com/20170718/ms1667"
    xmlns:ms1234x="http://example.com/20170718/ms1667x"
    xmlns:ms506b1="http://example.com/20170718/ms16672x1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://example.com/xml/2017/abc-comm/1234/abc.xsd">
  </abcd:orderinfo>

0 个答案:

没有答案
相关问题