This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
GeeCON Prague 2014
 
subject: Use Java to parse C# serialized XML