Click here to Skip to main content
15,889,867 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi,

I've just decided to impliment a support layer that removes empty nodes. This is working now and I haven't found any issues with it:

string ct = this.HttpWebResponse.Headers["Content-Type"];
            if (ct.Contains("application/xml"))
                this.response_text = FilterOutEmptyNodes(this.response_text);
        }

        private string FilterOutEmptyNodes(string p)
        {
            //run regex to remove empty Ruby/Rails ActiveRecord nodes for C#/Asp.net compatability
            return System.Text.RegularExpressions.Regex.Replace(p, "<[^>]*><[^>]*>", "");
        }



/\ |_ E X E GG

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 
AnswerRe: please help Pin
Dave Kreskowiak2-Oct-07 11:04
mveDave Kreskowiak2-Oct-07 11:04 
GeneralRe: please help Pin
Paul Conrad2-Oct-07 10:52
professionalPaul Conrad2-Oct-07 10:52 
GeneralRe: please help Pin
Pete O'Hanlon2-Oct-07 10:56
mvePete O'Hanlon2-Oct-07 10:56 
GeneralRe: please help Pin
Colin Angus Mackay2-Oct-07 11:02
Colin Angus Mackay2-Oct-07 11:02 

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.