• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOXMLCoder mapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Loggin what user does + concurrent access- best practices
  • Next by Date: WO encoding
  • Previous by thread: Loggin what user does + concurrent access- best practices
  • Next by thread: WO encoding
  • Index(es):
    • Date
    • Thread