您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

JIBX:从Maven Codegen插件生成的类:元素没有解组器

JIBX:从Maven Codegen插件生成的类:元素没有解组器

我终于找到了答案。我想使用的xml中缺少namepace声明。它可以与以下形状正确的形状一起使用:

    <?xml version="1.0" encoding="UTF-8" ?>
        <foo:foo xmlns:foo="http://www.example.jibx.org/generated/v30/foo"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.example.jibx.org/generated/v30/foo foo-3.0.xsd">
            <generic>
                <type>12345</type>
                <isValid>1</isValid>
            </generic>
            <specific>
                <label>Label example</label>
                <dateFoo>01/01/2015</dateFoo>
            </specific>
        </foo:foo>
其他 2022/1/1 18:44:52 有502人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶