Hi,

In my project, I have an existing technology which instantiates
JavaBeans and populates them using usual Bean introspection (eg. Like in
Struts - construction of Struts Form objects from http request
parameters ....) 

The requirement is now to generate XML of our entire javabean data
model. So at runtime, I should be able to invoke the tool to instantiate
our Value objects (JavaBeans) and get an XML representation out of
them.. ( XML of entire VO object hierarchy) to be sent to other systems.

I decided to explore XMLBeans but looks like the starting point for any
XMLBeans runtime (not compile time-I am not worried abt XSD) operation
is an existing XML (instance of XSD).  So for instantiating any XMLBean
objects that are generated from scomp, you have to supply an XML. 

MyObjectDocument.parse(xml)...



In my case, it's the opposite. It's the XML which I have to finally get
my hands on, from Java objects. Is XMLBeans the right choice? Basically,
I did a simple Class.forName("MyObjectDocument") and it threw a
java.lang.InstatiationException.

Please suggest.


Thanks
Yuvraj

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to