Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18979
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Best way to generate XSD from Java |
| Date | 2012-09-28 21:34 +0200 |
| Message-ID | <acmcf7Fl42U1@mid.individual.net> (permalink) |
| References | <1lz5htc7ru4px.y4dvutffaftd$.dlg@40tude.net> <5065f23e$0$285$14726298@news.sunsite.dk> <1w8k70m8bfjn7.g6ysc3inyk4d$.dlg@40tude.net> |
On 28.09.2012 21:21, the don wrote: > On Fri, 28 Sep 2012 14:53:43 -0400, Arne Vajhøj wrote: > >> On 9/28/2012 2:30 PM, the don wrote: >>> Want to tag Methods first, then input tagged Java file to code generator, >>> like JavaDoc or Velocity, then output XML Schema with elements generated >>> according to parameters provided by tags. >>> >>> Better to use JavaDoc Tags or Annotations? What Templating engine(s) do you >>> recommend? >> >> Annotations are a lot easier to process than source code parsing. >> >> And I assume that you want to write a customer generator. >> >> The easy solution is JAXB annotations and schemagen. >> >> Arne > > Thank you, I will take a look Just a side note: I prefer to create the schema _first_ because that is something the user will face (I am thinking of configuration files here). So first comes usability for the user and only then I bother how that will be transferred into Java land. I use "trang" to generate an XSD and modify it manually afterwards. http://www.thaiopensource.com/relaxng/trang.html If you are designing XML based persistence of Java classes then of course your approach is at least equally valid. But I would do that only if I am sure no human being needs to edit those XML files. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 14:30 -0400
Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 14:53 -0400
Re: Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 15:21 -0400
Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-28 21:34 +0200
Re: Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 16:54 -0400
Re: Best way to generate XSD from Java Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-09-28 23:35 +0200
Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 23:14 -0400
Re: Best way to generate XSD from Java markspace <-@.> - 2012-09-29 01:34 -0700
Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-29 12:43 +0200
Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-29 12:55 +0200
Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 23:02 -0400
Re: Best way to generate XSD from Java Roedy Green <see_website@mindprod.com.invalid> - 2012-09-30 04:03 -0700
Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-30 17:24 +0200
csiph-web