[Simple-support] about PREFIX of ATTRIBUTE
Brought to you by:
niallg
|
From: Jaewoo L. <dl...@gm...> - 2013-01-03 05:36:51
|
Hi, Niall.
I would ask about something about Converting XML to Simple Framework.
this is target XML code.
....
<value xsi:type="PQ" value="88" unit="kg" />
....
I guess that "xsi:type" is Attribute named "type".
So I defined the attribute like this code.
.....
@Attribute(name = "type", required = false)
protected String type;
....
And then, I succeed Read/Write from target XML code.
...
<value type = "PQ "value="88" unit="kg"/>
....
But, I couldn't attach "xsi:" before "type" attribute.
I knew that "@Namespace" annotation has a optional choice "prefix" to solve
this case.
Is there any way to attach string("xsi:)" to attribute like "prefix" option?
|