Hi.
I've the following xml file:
<pp:ProcessDefinition
xmlns:pp =
"http://www.processpuzzle.com/type_definition/ProcessModelTypes"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation =
"http://www.processpuzzle.com/type_definition/ProcessModelTypes
../../../../../ObjectPuzzle/Implementation/FrameworkWebTier/WebContent/Proce
ssDefinition/ProcessDefinition.xsd" >
<protocols>..</protocols>
<artifactTypes>..</artifactTypes>
..
..
<pp:/ProcessDefinition>
and mapping:
<binding>
<namespace prefix="pp"
uri="http://www.processpuzzle.com/type_definition/ProcessModelTypes"
default="elements" />
<mapping name="ProcessDefinition"
class="com.itcodex.objectpuzzle.workflow_management.domain.ProcessDefinition
" >
<collection name="protocols" field="lifecycles"
create-type="java.util.ArrayList" usage="optional"></collection>
<collection name="artifactTypes" field="artifactTypeGroups"
create-type="java.util.ArrayList"></collection>
</mapping>
..
..
</binding>
With the mapping above I've to add pp prefix to the protocols and
artifactTypes (<pp:protocols>, <pp:artifactTypes>) elements, but this change
turns the xml to be invalid. We heavily rely on schema validation so this is
not an option. If I remove the <namespace> element from the mapping, I
receive the: org.jibx.runtime.JiBXException: No unmarshaller for element
"{http://www.processpuzzle.com/type_definition/ProcessModelTypes}ProcessDefi
nition" (line 5, col 178), which seems to be logical.
I've played a lot with different mapping, but I couldn't found the solution.
Please let me know how to overcome on this problem.
Thanks in advance:
Zsolt Zsuffa
CEO, senior consultant
[EMAIL PROTECTED]
IT Codex Ltd.
2111 Szada,
Kossuth utca 32.
Tel: 28-503090
www.itkodex.hu <http://www.itkodex.hu/>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users