Vic,
You can create XMLBeans that
represent the entire document or individual elements within the document. You
then call setters to populate the XMLBeans. There are no setters
for xsd:any subelements, so to populate those, you have to use
either XmlCursor or DOM. This is all covered pretty well in the tutorial [1] and
the docs [2].
Fyi, for futures, the user
list is a better place to post this kind of a
question.
Regards,
Ian
From: Victor Pezzola [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 11:04 PM
To: [EMAIL PROTECTED]
Subject: Creating XML documents through XMLbeansHello,Thanks everyone for your hard work on XMLbeans. We through some complex schemas against it and it churned out all the beans without a problem.How does XMLbeans store run-time created XML documents using setters? I wanted to generate XMLbeans classes using a large superset schema and then during run-time only load a small subset of that schema using the bean's setters. When I ask XMLbeans to generate the XML, will it return XML representing the whole superset or just the subset that I explicited created and loaded? I was hoping it will return only the small subsets that were loaded.Thank you,Vic