Why is Oxygen generating child elements with empty xmlns attributes?

余生长醉 提交于 2019-12-02 07:45:01
  1. Because the elements in question are not in any namespace. They cannot use an alternative prefix, because unqualified expanded names can only be represented by unprefixed names. But they are children of elements using a non-empty default namespace. So the only way they can appear in the document is by clearing the default namespace declaration.

  2. Stop declaring the elements as not being in any namespace. The simplest approach is to add elementFormDefault="qualified" to the schema element.

  3. Yes.

  4. Omit the targetNamespace attribute on xs:schema.

  5. Google is your friend.

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