• 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
Re: WOXMLCoder with mapping question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOXMLCoder with mapping question


  • Subject: Re: WOXMLCoder with mapping question
  • From: Simon McLean <email@hidden>
  • Date: Tue, 30 Dec 2008 16:58:08 +0000


trying to get xmlcoder to give you what you are looking for is like trying to get blood out of a stone. by introducing a pojo to represent the <depts> tag you will be able to bodge it, but it's much more straight forward to just take the raw un-bodged output and stick it through an XSLT stylesheet.

Simon


On 30 Dec 2008, at 12:26, Kamal D Shah wrote:

Hi all,

I have an array of objects that I want to encode to XML. Let's say an array of departments. I need the XML to be generated to look like:

<depts>
<dept>
    <name>B</name>
    <description>BBBB</description>
</dept>
<dept>
    <name>A</name>
    <description>AAAA</description>
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

  • Follow-Ups:
    • Re: WOXMLCoder with mapping question
      • From: Kamal D Shah <email@hidden>
  • Prev by Date: Re: Recording and looking up dates, when day-wide precision is required
  • Next by Date: Re: Recording and looking up dates, when day-wide precision is required
  • Previous by thread: WOXMLCoder with mapping question
  • Next by thread: Re: WOXMLCoder with mapping question
  • Index(es):
    • Date
    • Thread