Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: "No connection could be made because the target machine actively refused it" Pin
Manfred Rudolf Bihy14-Nov-10 22:58
professionalManfred Rudolf Bihy14-Nov-10 22:58 
AnswerRe: "No connection could be made because the target machine actively refused it" Pin
Luc Pattyn15-Nov-10 3:37
sitebuilderLuc Pattyn15-Nov-10 3:37 
Questionthreshold filter problem Pin
pancakeleh14-Nov-10 22:03
pancakeleh14-Nov-10 22:03 
AnswerRe: threshold filter problem PinPopular
OriginalGriff14-Nov-10 23:27
mveOriginalGriff14-Nov-10 23:27 
GeneralIMPORT EXCEL TO SQL Pin
black0714-Nov-10 21:52
black0714-Nov-10 21:52 
GeneralRe: IMPORT EXCEL TO SQL Pin
Dave Kreskowiak15-Nov-10 2:00
mveDave Kreskowiak15-Nov-10 2:00 
GeneralRe: IMPORT EXCEL TO SQL Pin
musefan15-Nov-10 2:33
musefan15-Nov-10 2:33 
QuestionXML Serialization Pin
NarVish14-Nov-10 21:18
NarVish14-Nov-10 21:18 
Hi,
I've class, Node, with the following properties and these are the attributes of XML element.
XmlAttribute("id")]
public string Id
{
   get { return m_id; }
   set { m_id = value; }
} 
[XmlAttribute("char")]
public string Char
{
   get { return m_ch; }
   set { m_ch = value; }
}

When this is serialized, it created the xml elements as below
 <Node char="_" id="S_SEPARATOR">
<Node char="" id="S_BLANK">


The requirement is, if id is "S_BLANK", it shouldn't show "char" attribute, as below.
<Node char="_" id="S_SEPARATOR">
<Node id="S_BLANK">


Please guide me to get this output. Thanks in advance.
AnswerRe: XML Serialization Pin
Manfred Rudolf Bihy14-Nov-10 22:02
professionalManfred Rudolf Bihy14-Nov-10 22:02 
GeneralRe: XML Serialization Pin
NarVish14-Nov-10 22:09
NarVish14-Nov-10 22:09 
GeneralRe: XML Serialization Pin
Manfred Rudolf Bihy14-Nov-10 22:14
professionalManfred Rudolf Bihy14-Nov-10 22:14 
GeneralRe: XML Serialization Pin
NarVish14-Nov-10 22:31
NarVish14-Nov-10 22:31 
GeneralRe: XML Serialization Pin
Manfred Rudolf Bihy14-Nov-10 22:59
professionalManfred Rudolf Bihy14-Nov-10 22:59 
GeneralRe: XML Serialization Pin
NarVish14-Nov-10 23:09
NarVish14-Nov-10 23:09 
Questionimage procesing get text from image Pin
TAREQ F ABUZUHRI14-Nov-10 21:07
TAREQ F ABUZUHRI14-Nov-10 21:07 
AnswerCrossPost Pin
OriginalGriff14-Nov-10 21:29
mveOriginalGriff14-Nov-10 21:29 
AnswerRe: image procesing get text from image Pin
DaveAuld14-Nov-10 21:37
professionalDaveAuld14-Nov-10 21:37 
GeneralRe: image procesing get text from image Pin
TAREQ F ABUZUHRI14-Nov-10 21:38
TAREQ F ABUZUHRI14-Nov-10 21:38 
AnswerRe: image procesing get text from image Pin
Pete O'Hanlon14-Nov-10 22:18
mvePete O'Hanlon14-Nov-10 22:18 
GeneralRe: image procesing get text from image Pin
DaveAuld15-Nov-10 2:00
professionalDaveAuld15-Nov-10 2:00 
GeneralRe: image procesing get text from image Pin
Pete O'Hanlon15-Nov-10 2:12
mvePete O'Hanlon15-Nov-10 2:12 
GeneralRe: image procesing get text from image Pin
DaveAuld15-Nov-10 2:15
professionalDaveAuld15-Nov-10 2:15 
AnswerRe: image procesing get text from image Pin
phil.o14-Nov-10 22:51
professionalphil.o14-Nov-10 22:51 
GeneralRe: image procesing get text from image Pin
musefan15-Nov-10 2:36
musefan15-Nov-10 2:36 
AnswerRe: image procesing get text from image Pin
Dave Kreskowiak15-Nov-10 3:41
mveDave Kreskowiak15-Nov-10 3:41 

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.