You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Siamak Haschemi <si...@gmx.de> on 2006/04/19 10:20:49 UTC
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
RE: Dynamic compilation of XML-Schema
Posted by vramu_sg <ra...@SIMTech.a-star.edu.sg>.
Can u give me example of how to initialize the following objects
xsds, bindingConfig, filer, & xml_opts in the below example
SchemaTypeSystem displaySts = XMLBeans.compileXMLBeans("name", null, xsds,
bindingConfig, builtin, filer, xml_opts);
--
View this message in context: http://www.nabble.com/Dynamic-compilation-of-XML-Schema-t1473027.html#a4234884
Sent from the Xml Beans - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
RE: Dynamic compilation of XML-Schema
Posted by Jacob Danner <ja...@bea.com>.
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:siamak.h@gmx.de]
Sent: Wed 4/19/2006 2:20 AM
To: user@xmlbeans.apache.org
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
_______________________________________________________________________
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org