aspose file tools*
The moose likes Java in General and the fly likes Use Java to parse C# serialized XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Use Java to parse C# serialized XML" Watch "Use Java to parse C# serialized XML" New topic
Author

Use Java to parse C# serialized XML

Peter Hsu
Ranch Hand

Joined: Aug 25, 2006
Posts: 72
Hi

I have 2 classes. One written in Java, one Written in C#. Their structure should mirror one another. The C# object is serialize to an XML file using XMLSerializer. I want to be able to deserialize the XML into a Java object of the class written in Java. What is the best way to do it? Using DOM? JAXB? or is there a tool designed specifically for this purpose?

thanks

Peter
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Why don't you pass it as a SOAP message?


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Peter Hsu
Ranch Hand

Joined: Aug 25, 2006
Posts: 72
Actually, the serialized object is saved in database. The Java program only go in the database to obtain that object when it needs it.

If the requirement is real time invocation I would have used SOAP for sure.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use Java to parse C# serialized XML