Hi,
in vb.net there is a way to serialize a class to a XML-document and the other way round.
Is there also a simple way to do this in java for BlackBerry? I get a XML-document such like this one here:
Quote:
<myDoc>
<user>
<name>Name1</name>
<vorname>Vorname1</vorname>
</user>
<user>
<name>Name2</name>
<vorname>Vorname2</vorname>
</user>
...
</myDoc>
|
Now I've got my Class user:
Code:
class user {
public String Name;
public String Vorname;
user() {}
} And now i want to pasre the XML-String and after parsing I want to have a Vector. The Vector should contain n elements of class
user, created from the XML-String.
So is there a Simple way to do this? Is there a kind of function which I can use for other classes also??
I hope you know what i want to do, and i hope that someone can help me
thanks, hibbert