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.

2
  • Please look at the this link for other options as @Thorbjørn Ravn Andersen already mentioned for the above method. Commented Jun 25, 2011 at 19:19
  • @Asad: Just wanted to know if this would be XML serializable compatible in c# Commented Jun 25, 2011 at 21:11

2 Answers 2

3

You should try android.util.Xml.

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.