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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to