Omitting NULL properties in XML using mapping models
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