Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Random Pin
TJoe2-Oct-07 20:51
TJoe2-Oct-07 20:51 
QuestionVB6 ActiveX to push data to a C# Program [modified] Pin
TimNaber2-Oct-07 13:35
TimNaber2-Oct-07 13:35 
AnswerRe: VB6 ActiveX to push data to a C# Program Pin
Parwej Ahamad2-Oct-07 17:55
professionalParwej Ahamad2-Oct-07 17:55 
Questionint? Pin
seemamltn2-Oct-07 13:08
seemamltn2-Oct-07 13:08 
AnswerRe: int? Pin
Judah Gabriel Himango2-Oct-07 13:11
sponsorJudah Gabriel Himango2-Oct-07 13:11 
AnswerRe: int? Pin
Christian Graus2-Oct-07 13:11
protectorChristian Graus2-Oct-07 13:11 
QuestionHelp: NHibernate and SysCache2 [modified] Pin
emiaj2-Oct-07 12:27
emiaj2-Oct-07 12:27 
QuestionForce XmlSerializer.Deserilize to ignore empty XML tags Pin
eggie52-Oct-07 12:12
eggie52-Oct-07 12:12 
I'm having trouble deserilizing an xml node that has empty tags. See
XML:


<ContentCampaign>
<ad_id_source type="integer"></ad_id_source>
<billing_code type="integer"></billing_code>
<birth type="datetime">2007-08-24T16:15:16-07:00</birth>
<body>this campaign has alerady been sent</body>
<category_id type="integer">1</category_id>
<created_at type="datetime"></created_at>
<id type="integer">4</id>
<name>complete_campaign</name>
<notes></notes>
<subject>this campaign is read to send</subject>
<thumbnail></thumbnail>
<updated_at type="datetime"></updated_at>
<valid_after type="datetime"></valid_after>
</ContentCampaign>

This XML is generated from a rails web service and respresents a table
in the database.

When I try to deserilize this the deserlizer fails on the empty tags.
How can I make the deserializer simply ignore these tags as they have
no value anyways...?

/\ |_ E X E GG
AnswerRe: Force XmlSerializer.Deserilize to ignore empty XML tags Pin
TJoe2-Oct-07 12:39
TJoe2-Oct-07 12:39 
GeneralRe: Force XmlSerializer.Deserilize to ignore empty XML tags [modified] Pin
eggie52-Oct-07 13:49
eggie52-Oct-07 13:49 
GeneralRe: Force XmlSerializer.Deserilize to ignore empty XML tags Pin
TJoe2-Oct-07 15:16
TJoe2-Oct-07 15:16 
GeneralRe: Force XmlSerializer.Deserilize to ignore empty XML tags Pin
eggie52-Oct-07 15:43
eggie52-Oct-07 15:43 
QuestionCounter Pin
MasterSharp2-Oct-07 11:18
MasterSharp2-Oct-07 11:18 
AnswerRe: Counter Pin
Paul Conrad2-Oct-07 11:21
professionalPaul Conrad2-Oct-07 11:21 
GeneralRe: Counter Pin
MasterSharp2-Oct-07 11:21
MasterSharp2-Oct-07 11:21 
GeneralRe: Counter Pin
MasterSharp2-Oct-07 11:23
MasterSharp2-Oct-07 11:23 
GeneralRe: Counter Pin
Paul Conrad2-Oct-07 11:26
professionalPaul Conrad2-Oct-07 11:26 
AnswerRe: Counter Pin
Christian Graus2-Oct-07 13:10
protectorChristian Graus2-Oct-07 13:10 
QuestionIcon Pin
MasterSharp2-Oct-07 11:00
MasterSharp2-Oct-07 11:00 
AnswerRe: Icon Pin
Peter Vertes2-Oct-07 11:04
Peter Vertes2-Oct-07 11:04 
Questionplease help Pin
memaia2-Oct-07 10:46
memaia2-Oct-07 10:46 
AnswerRe: please help Pin
Dan Neely2-Oct-07 10:50
Dan Neely2-Oct-07 10:50 
AnswerRe: please help Pin
Colin Angus Mackay2-Oct-07 10:50
Colin Angus Mackay2-Oct-07 10:50 
AnswerRe: please help Pin
Paul Conrad2-Oct-07 10:50
professionalPaul Conrad2-Oct-07 10:50 
AnswerRe: please help Pin
zeeShan anSari2-Oct-07 10:50
zeeShan anSari2-Oct-07 10:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.