Details
-
Type: Wish
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I use XStream to store configuration data.
It would be pretty neat to have XStream create a DTD or XML-Schema file for the marshalled object (even a rudimentary one).
Having some access to some sort or validation mechanism would improve the useage of the resulting xml in an editor.
Hello,
I have tried to do a schema for XStream (see attached file) yet one of the most important point is the fact that it is impossible to do a complete schema.
The reason is that XML must have static element name, and XStream create a lot of dynamic element names, for example with the name of attributes or with type for arrays, etc.