Skip to main content

JAXB: Object Mapping by using XML Contenten and Elements

1 reply [Last post]
andersland
Offline
Joined: 2007-06-24
Points: 0

Hi,

I am new to JAXB and I do have an question. Is it possible to use content of an xml-file within mapping declarations (like hibernate can do?)

Instead of using the Activity element from the xsd below, i want to use the content of the "type" element to create different Activity objects. Is this possible?

Kind regards

Andersland

<?xml version="1.0" encoding="UTF-8"?>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
spericas
Offline
Joined: 2003-06-10
Points: 0

Please note that this is JAXP not the JAXB forum. Thanks.