XML包含多个名称空间 - 但它只有一个(The XML contains multiple namespaces - but it only has one)
我正在使用SSIS导入XML文件。
当我尝试生成XSD时,它显示错误:
无法从XML文件中推断出XSD。 XML包含多个名称空间
这是XML文件的一个非常基本的清理版本:
<?xml version="1.0"?> <SM> <xF> <MA xmlns="http://www.somewhere.com/ZZ/ZZ.xsd"> </SM> .... other stuff ... </xF>
它肯定只有一个
xmlns=
,它没有命名空间限定符,有点像这样:....除了没有命名空间限定符(文件中唯一的
:
在URL中)如果它只有一个
xmlns=
,那是不是意味着它只有一个命名空间,而不是很多?如果存在某种“固有”命名空间,则意味着SSIS无法导入任何带有
xmlns=
声明的xml文件。任何人都可以澄清:一个只有一个
xmlns=
的XML文件有多少名称空间? 是否有一个我可以使用的工具,它将枚举命名空间,以便我可以识别它们?有许多在线解决方案说“用xlst删除xmlns”但我宁愿首先理解为什么SSIS认为它有多个命名空间。
如果我删除xmlns部分,生成XSD并导入它导入OK。 如果我将xmlns保留并使用现有XSD导入,则不会导入任何行。 我认为这是因为XSD需要引用命名空间,但如果我将
targetNamespace
放入XSD,它仍然不会导入任何行。 也许我需要找一个非SSIS XML工具来做一些调查。I'm using SSIS to import XML files.
When I try to generate XSD it shows the error:
Unable to infer the XSD from the XML file. The XML contains multiple namespaces
Here a very basic sanitised version of the XML file:
<?xml version="1.0"?> <SM> <xF> <MA xmlns="http://www.somewhere.com/ZZ/ZZ.xsd"> </SM> .... other stuff ... </xF>
It definitely only has one
xmlns=
in it, and it has no namespace qualifiers, a bit like this:Unable to infer XSD from XML file .XML contain Multiple Namespaces
....except that there are no namespace qualifiers (the only
:
in the file is in the URL)If it only has one
xmlns=
in it, doesn't that mean it only has one namespace, not many?If there is some kind of 'inherent' namespace, that means that SSIS is unable to import any xml file with a
xmlns=
declaration in it.Can anyone clarify: how many namespaces does an XML file with only one
xmlns=
in it have? Is there a tool I can use that will enumerate the namespaces so I can identify them?There are many online solutions that say "remove the xmlns with xlst" but I would rather first understand why SSIS thinks it has multiple namespaces.
If I remove the xmlns part, generate the XSD and import it imports OK. If I leave the xmlns in and import with the existing XSD it imports no rows. I think this is because the XSD needs to refer to the namespace, but if I put
targetNamespace
into the XSD, it still imports no rows. Perhaps I need to find a non SSIS XML tool to do some investigation.
原文:https://stackoverflow.com/questions/32961930
满意答案
Vue正在挂钩原生活动。 jQuery在本机事件之上的层中生成事件。 有关如何使用
document.createEvent
创建和分派本机事件的更多信息,请参阅此处:https://learn.jquery.com/events/triggering-event-handlers/
这里有一个很好的例子: 是否可以通过编程方式模拟按键事件?
Vue is hooking native events. jQuery is generating events in a layer above native events. See this for more information on how to use
document.createEvent
to create and dispatch native events:https://learn.jquery.com/events/triggering-event-handlers/
There's a good example here: Is it possible to simulate key press events programmatically?
相关问答
更多如何从jquery触发Vue事件?(How can I trigger Vue event from jquery?)
防止Vue中的事件冒泡(Prevent event bubbling in Vue)
Vue 2与jquery选择(Vue 2 With Jquery Chosen)
渲染后的Vue组件事件(Vue component event after render)
jquery触发一个事件(jquery trigger an event)
在jquery中全局触发事件(trigger event globally in jquery)
来自jquery的点击事件的fire vue方法(Fire vue method from jquery on click event)
用中文输入问题计算的vue 2触发器(vue 2 trigger computed with chinese input issue)
使用jQuery,如何触发和由另一个版本的jQuery处理的事件?(With jQuery, how to trigger and event that is handled by another version of jQuery?)
没有Node.js的Vue-Select事件触发器(Vue-Select event trigger without Node.js)
相关文章
更多关于solr schema.xml 和solrconfig.xml的解释
Solr Schema.xml和solrconfig.xml分析
[solr] solrconfig.xml
对于XML 以及 DTD的一些了解
Solr Schema.xml和solrconfig.xml分析(转)
Solr笔记(2)_Schema.xml和solrconfig.xml分析
关于 solr schema.xml 的配置说明
关于 solr solrconfig.xml 的配置说明
最新问答
更多您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
在计算机拍照在哪里进入
使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
单页应用程序:页面重新加载(Single Page Application: page reload)
在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!