I know the compilation at runtime is possible, and from there it SHOULD be
possible to use the APIs if you load them right.
When you compile you can get information about the Schema type system that you
may find helpful rather than using reflection.
Here is a code snippets you might find useful:
SchemaTypeLoader builtin = XMLBeans.getBuiltinTypeSystem();
// Basic Method Usage
SchemaTypeSystem displaySts = XMLBeans.compileXMLBeans("name", null, xsds,
bindingConfig, builtin, filer, xml_opts);
I don't see why this wouldn't work, but keep the list updated on what you find,
-Jacobd
-----Original Message-----
From: Siamak Haschemi [mailto:[EMAIL PROTECTED]
Sent: Wed 4/19/2006 2:20 AM
To: [email protected]
Subject: Dynamic compilation of XML-Schema
Hello to all.
I think about a scenatio in which a Client retrieves XML-Schema through
Network. With this schema it compiles Beans with XMLBeans at !runtime!
After generating the Beans the Client can access the Bean through
Reflection (Because the Client doesn't know anything about the
structure) or use the Information of the schema.
Is this scenario possible with XMLBeans? Can we compile at runtime and
load the generated .class files?
Thank you very much,
Siamak Haschemi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_______________________________________________________________________
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]