Re: Most common XML/XSD validations?
Roedy Green wrote:
On Sun, 30 Sep 2007 23:23:32 GMT, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :
what Java folk most commonly need are validation of JNLP files at the
various levels.
would it be possible to invent an XSD for JNLP 1.0, 1.5 and 6.0. that
when you used a feature improperly from a more advanced version, did
not treat it as a syntax error, but instead put out a warning message
the feature required version 1.5+ or 1.6+?
Perhaps you might create such a beast by validating under all 3 and
diffing the results.
Interesting thought. The entire current code would need
to be redesigned to achieve that though, so much so that
it would probably warrant a separate project.
I will leave YAX-V as it is - a one-to-one validator. It is
elegantly/stupidly short* in the simplicity** of how it
validates.
* As opposed to the GUI code I wrapped around it.
** The validation part comes to around 40 lines of code
(I would estimate without checking).
Thanks for the bug report/suggestions - I will look into them
further and respond on that post when I have further analysed
(and hopefully solved!) the bug, as well as reviewed your other
suggestions.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1