Answer to Question #57129 in Java | JSP | JSF for manar

Question #57129
can you help me how to convet the object to xml in java
Serializer s=new Persister();

File f=new File("home.xml");
Mobile c=new Mobile(a[0].getType(),a[0].getOS(),a[0].getSize(),a[0].getMemory(),a[0].getPrice());

try {

s.write(c,f);


} catch (Exception ex) {
Logger.getLogger(Final_project.class.getName()).log(Level.SEVERE, null, ex);
}
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS