Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 捆绑包配置xsd(bundleconfiguration.xsd)_C#_Xml_Xsd - Fatal编程技术网

C# 捆绑包配置xsd(bundleconfiguration.xsd)

C# 捆绑包配置xsd(bundleconfiguration.xsd),c#,xml,xsd,C#,Xml,Xsd,我有一个问题,我很乐意得到正确的答案。以下代码中这三行的操作是什么 targetNamespace=”http://www.yazilim.com/bundleconfiguration/" xmlns=”http://www.yazilim.com/bundleconfiguration/" xmlns:mstns=”http://www.yazilim.com/bundleconfiguration/" targetNamespace的值只是一个唯一的标识符,通常公司可以使用其URL后跟一些

我有一个问题,我很乐意得到正确的答案。以下代码中这三行的操作是什么

  • targetNamespace=”http://www.yazilim.com/bundleconfiguration/"

  • xmlns=”http://www.yazilim.com/bundleconfiguration/"

  • xmlns:mstns=”http://www.yazilim.com/bundleconfiguration/"


  • targetNamespace的值只是一个唯一的标识符,通常公司可以使用其URL后跟一些描述性的内容来限定它

    原则上,名称空间没有任何意义,但一些公司使用存储模式的URL作为targetNamespace,因此一些XML解析器将使用该URL作为模式的提示路径:

    targetNamespace="http://www.microsoft.com/CommonTypes.xsd"
    

    /bundlecondifuration.xsd是一个模式文件,用于定义xml文件的结构以及属性的有效类型。通常有一个名称空间指定前缀(冒号前的项)和架构文件所在的URL。在您的情况下,似乎缺少实际的文件名,并且只指定了URL文件夹。谢谢兄弟,如果我删除这部分架构,那么这三行,这个架构会工作吗?这取决于您如何使用它,例如:XHTML中需要xmlns属性,HTML 4.01中无效,HTML5中可选。Ahmed bro,每个类库中都有一个.xsd模式,我不知道为什么要使用它,您能提供一些信息吗?创建XML模式时,我们使用XML模式标准中指定的元素和属性。为了实现这一点,我们必须在模式的根元素(“模式”元素)中包含对命名空间“”的引用。这是通过在“schema”元素中包含“xmlns”属性来实现的:•xmlns:标识方案中包含的组件所属的命名空间,可以选择分配前缀(此前缀为​​通常为“xs”或“xsd”。因此,语句xmlns:xs=”“表示方案中使用的元素和数据类型来自名称空间“”,该名称空间被赋予前缀“xs”。