• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate Java Class from XML at runtime  RSS feed

 
Greenhorn
Posts: 16
Eclipse IDE IntelliJ IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Do any one have idea how to generate Java class for the XML file
 
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's entirely unclear what you are trying to do. What should that class do? What is "the XML file"?
 
Ranch Hand
Posts: 133
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to know about Marshalling and Unmarshalling?
i.e. xml to java objects and vice versa.
But again this is not generating Java Class from XML file.

You can see http://jaxb.java.net/ if this is what you want to do.
 
Divya Kumar
Greenhorn
Posts: 16
Eclipse IDE IntelliJ IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone for answers..Actually I want crate java file using XML declare at runtime then use it as normal class im my application ..An d i m able to do so..
 
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be ice if you could share your solution so that other readers could also benefit from it.
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin Vajsar wrote:It would be ice

Is that new slang?
 
Marshal
Posts: 56600
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:
Martin Vajsar wrote:It would be ice

Is that new slang?
Yes, it means “cool”.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought as much.
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to disappoint both of you, but it was intended to be spelled nice.

A quick search over online dictionaries suggest the correct slang would be icy, or perhaps icey. Damn, and I've already hoped I could claim an authorship over this one. It would be sooo ic(e)y.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin Vajsar wrote:Sorry to disappoint both of you, . . .
You can’t spoil our fun like that. We won’t let little things like facts get in the way of such an ice theory.
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:You can’t spoil our fun like that. We won’t let little things like facts get in the way of such an ice theory.

Oh yeah. I do that all the time. My nickname is Killjoy.

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use com.sun.tools.xjc.XJCTask as a Ant Task

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!