gpt4 book ai didi

java - globalBinding 标签可以包含在根元素中吗?

转载 作者:太空宇宙 更新时间:2023-11-04 08:44:31 25 4
gpt4 key购买 nike

我有以下外部绑定(bind)文件 -

<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jxb:extensionBindingPrefixes="xjc"
>
<jxb:bindings schemaLocation="xyz" node="/xs:schema">
<jxb:globalBindings>
<xjc:serializable/>
</jxb:globalBindings>
<jxb:schemaBindings>
<jxb:package name="abc"/>
</jxb:schemaBindings>
</jxb:bindings>
</jxb:bindings>

我需要将 jxb:globalBindings 标记放置在根 jxb:bindings 中

最佳答案

是的,这是正确的位置

a <bindings> element can contain arbitrary number of binding declarations or nested <bindings> elements

http://java.sun.com/xml/ns/jaxb/bindingschema_1_0.xsd

关于java - globalBinding 标签可以包含在根元素中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4602951/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com