• 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

reading values from pojo and setting

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have to set fields for user form where the user values come from a user object(i.e from Web service) and i have xml containing field name and schema name to set with that i have field name that is in user object like
<Username>--->refers to name in object
<schema name>--->to schema name i have to set
<field name>--->field name
how cani read values from pojo and set to that particluar field from xml
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If you mean to say how to write values from POJO to xml then you need to set the values from POJO into xml.
if you want to add any values from pojo into it then you need to use xml Parser with which you can add values into xml..
Good Example is http://www.mkyong.com/java/how-to-create-xml-file-in-java-dom/

Hope this will help you.

Regards
Jatan
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic