Answer to Question #57129 in Java | JSP | JSF for manar
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
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!
Learn more about our help with Assignments:
JavaJSPJSF
Comments
Leave a comment