WOXMLCoder mapping
WOXMLCoder mapping
- Subject: WOXMLCoder mapping
- From: Robert B.Hanviriyapunt <email@hidden>
- Date: Tue, 7 Jul 2009 08:39:21 -0500
I have a simple object I need to encode:
public class Foo {
public String[] numbers = new String[] { "one", "two", "three" };
public String[] letters = new String[] { "alpha", "beta" };
}
into:
<foo>
<numbers>
<number>one</number>
<number>two</number>
<number>three</number>
</numbers>
<letters>
<letter>alpha</letter>
<letter>beta</letter>
</letters >
</foo>
Can this be done with WOXMLCoder.coderWithMapping? I tried and have
not succeeded. I used wrapper methods to turn String[] into
NSDictionary containing an NSArray. It did not work. It seems that
the coder does not register two entries for the class NSDictionary.
Please help.
= Robert =
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden