"[EMAIL PROTECTED]" wrote : "[EMAIL PROTECTED]" wrote : "[EMAIL PROTECTED]" wrote : Another issue that jumps out is how to reverse the process. | | | e.g. Given an MC metadata config how do we identify the marshalling | | | of these javabeans back into an xml file? | | | | With marshalling metadata. | | Yes, but where do I store this? I have a metadata object model that maps | to a well defined schema, but there is also a requirement to have an | "ANY object" injected into my metadata model as an Object reference. | | This is fine XML -> Objects because the schema references are in the XML. | | But Objects->XML how do I/you know the relevent schema? There could be any | number of schemas that could have constructed the Object I reference.
There should be (un)marshalling metadata for each possible value of ANY type. Before marshalling, this metadata should be added to object graph's marshalling metadata. Or we could have a metadata library where we could store metadata for types we know/expect. If ANY value is not recognized (metadata is not provided/found in the library or otherwise not availble), we could apply default marshalling rules (default metadata) and still marshal the value. The resulting document still can be valid. Validation rules for ANY can be found here http://www.zvon.org/xxl/xmlSchema2001Reference/Standard//xmlschema-1.html#Wildcard_details View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871160#3871160 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871160 ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
