The element “x” in namespace “xSchema” has invalid child element “y” in namespace “xSchema”. List of possible elements expected: “y”

跟風遠走 提交于 2019-12-04 01:59:55
The element 'orders' in namespace 'OrdersSchema' 
has invalid child element 'order' in namespace 'OrdersSchema'. 
List of possible elements expected: 'order'. 

In other words, it thinks your schema told the parser to expect a non-namespaced <order> child element, and you provided a namespaced <os:order> in the instance document.

http://www.w3.org/TR/xmlschema-0/#NS

Your use of

elementFormDefault="unqualified"
attributeFormDefault="qualified"

is highly unusual, and is probably the source of the trouble. Unless you really want to do something unusual, these should be the other way around.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!