I am returning the xml output to the browser with a wcf webservice, if a property of a DataContract is null, it still comes through in the response as
<Id i:nil="true" />
Is there a way to have it not return in the response at all?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Figured it out myself, I needed to add the following atrribute to my DataMembers