• 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
Omitting NULL properties in XML using mapping models
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Omitting NULL properties in XML using mapping models


  • Subject: Omitting NULL properties in XML using mapping models
  • From: Ken Anderson <email@hidden>
  • Date: Wed, 03 Aug 2005 13:44:03 -0400

I would like to use mapping models to handle serializing classes to XML, but I have a bit of a problem. If the value is NULL, I get this in the XML:

<propertyName></propertyName>

The other side that's parsing this would prefer the property be completely omitted - it considers this an error.

Has anyone used mapping models to do this, or do I have to resort to writing for the WOXMLCoding interface?

Thanks much,
Ken

_______________________________________________
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: Re: Doing the version dance
  • Next by Date: Re: Build & Run Issue
  • Previous by thread: Re: Build & Run Issue
  • Next by thread: Deployment which WO version on Tiger server?
  • Index(es):
    • Date
    • Thread