• [프로그래밍] JAXB error with conflicted name2011.09.28 PM 05:34

게시물 주소 FONT글자 작게하기 글자 키우기

using JABX to genetrate XML binding classes.
the schema is based on a set of some XML files, and include this snippet


testFolder/


The 'name' attribute conflicts with the 'name' property and the code generation fails with the error:


Answer is use binding information
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="2.1">














and then excute with xjc extension

xjc -extension problem.xsd -b problem.xjb

then you will see the attribute "name" are renamed by xjc tool.
result is quite simple rename the conflicted one

댓글 : 0 개
친구글 비밀글 댓글 쓰기

user error : Error. B.