Pouncgrooni
New Member
More specific Questions:How do I overcome the following limitations in JAXB (if possible):1) validation of an xml file requires creating a schema file somewhere on the HD. I should not have to create a new file to validate the xml. I did find a post about this on stack overflow using some streams, but was wondering if there is any other way.2) how can I specify xml elements out of order in my file and still have it be loaded.for example i would like both of the following to load correctly:\[code\]<xml> <defaults .../> <people> ... </people></xml><xml> <people> ... </people> <defaults .../></xml>\[/code\]Also the same goes for properties. Ie specifying properties out of order should work also. I haven't tested the properties, but the above definitely fails to load. JAXB enforces order on the elements. Which should be optional in the above exmaple.3) allow properties and elements to be optional. If not specified, the file should still load and just not set the missing properties (ie use the default values initialized in the class). Currently this does not work either. If i don't put a property even when required=false, it just fails to load the entire file.