0

I am trying to use XMLEncoder to serialize my java object for Android app which I need to further deserialize in c# server.

To import XMLEncoder in eclipse I use:

import java.beans.XMLEncoder;

The error i get for this import line is:

The import java.beans.XMLEncoder cannot be resolved

Pls give suggestions.

Asad Rasheed
  • 518
  • 5
  • 13
Shaleen
  • 3
  • 2
  • Please look at the [this](http://stackoverflow.com/questions/3587504/android-xml-object-serialization) link for other options as @Thorbjørn Ravn Andersen already mentioned for the above method. – Asad Rasheed Jun 25 '11 at 19:19
  • @Asad: Just wanted to know if this would be XML serializable compatible in c# – Shaleen Jun 25 '11 at 21:11

2 Answers2

3

You should try android.util.Xml.

Amandeep Grewal
  • 1,801
  • 3
  • 19
  • 30
1

XMLencoder is not supported in Android, so you cannot use this approach.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347