users@jaxb.java.net

Re: How to fill dynamically JAXB java objects

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Sat, 4 Oct 2008 21:55:42 +0200

Hi.

> I have to instantiate and populate that objects dynamiccaly, beacuse I 'm writing "Mapper project" , that gets output schemas and data xml as input then create new xml according to output schema , now I have to read output schemas (those objects) dynamically , beacuse this project must be able to map any schemas without konwing anything about schemas , then populate them and finally marshal them in output xml .

I have two comments.

First, you don't need JAXB. With JAXB, you usually have an XML Schema
or a Java object model (or both) that you want to map between. You
have none of this.
What you need is something like XSOM or any other XML Schema object
model which allows parsing the schema and processing the schema
constructs - to produce new XML or whatever you need.

Second, as I understand your task, it's rather complex. So I think it
woldn't be a bad idea to get someone more experienced with XML Schema
to work on this you.

Bye.
/lexi