• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java program to convert pojo object to pojo xml

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello friend ,

this question is not related to the other one ...

since i have developed this in webmethods and in the pipeline i have a pojo object getting created .
so my problem is from a pojo object how to convert to pojo xml format .

{main part is like the conversion of pojo object to pojo xml}


i need to write a java program to convert a pojo object to pojo xml .

i think that i need to use typecasting because i already have a pojo object(and object is used when we are not sure of the datatype).

now this pojo object i need to convert to pojo xml . but the point is how typecast to an xml .

Thanks in advance.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Casting doesn't transform anything - it is a way to tell the Java compiler that an object is of a particular type when the compiler has no way of knowing that for itself. No XML is involved.

Is this related to this other question of yours? If so, please elaborate in the other topic, otherwise tell us in more detail here what you're trying to do.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic