Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JAVA serialized file to XML

  Asked By: Hisham    Date: Jul 21    Category: Java    Views: 687

I wanna know where can i get information on how is an object
serialized file created, in order to transform it to XML.

Does anyone have any ideas?



1 Answer Found

Answer #1    Answered By: Aylin Kaya     Answered On: Jul 21

There are a few ways to achieve this

1. You can make use of the JAXB (Java API for XML
Binding) url is given below

These set of API's allow the user to map an xml  file
to a set of concrete java  Classes allowing Marshelling
and Un Marshelling from and to XML files to java

2. Write your own class that serializes and de

First serialize the object and write into the file
system by using the ObjectInput and ObjectInput stream
classes found in java.io packages.

Then write your own class that makes use of a class
that takes in an object and writes an XML file  back
into the HDD or stream.

Didn't find what you were looking for? Find more on JAVA serialized file to XML Or get search suggestion and latest updates.