生成的xml格式xmlbean中的派生类型的命名空间不同

时间:2013-05-21 16:11:54

标签: xml xmlbeans

生成的xml表单架构格式正确。

喜欢:

<tns:SCommand xmlns:tns="https/bla/bla/command" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
   <tns:Command xsi:type="tns:MyCommand">

当我构建XML格式的Java代码(XMLbeans)时,派生类型的命名空间是不同的

前:

CommandType  ct = MyCommand.Factory.newInstance(); 

xml是

<myc:Command xsi:type="MyCommand" xmlns:myc="https/bla/bla/command">

生成XML表单xmlbeans后,名称空间与模式匹配。前缀不同,uri正在添加。如何解决这个问题?

0 个答案:

没有答案
相关问题