permaculture playing cards*
The moose likes Java in General and the fly likes reading values from pojo and setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "reading values from pojo and setting" Watch "reading values from pojo and setting" New topic
Author

reading values from pojo and setting

gangadhar bhimavarapu
Greenhorn

Joined: Aug 08, 2012
Posts: 1
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
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading values from pojo and setting
 
Similar Threads
JBOSS EJBQL generate wrong SQL
DTO/VO or a Universal Map
Reading xmlschema file
How to determine when a form field is submitted if it's changed from the original value?
java program to convert pojo object to pojo xml