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

C#

 
GeneralRe: Is the ampersand character not allowed in a tooltip? Pin
Guffa12-Dec-06 15:21
Guffa12-Dec-06 15:21 
GeneralRe: Is the ampersand character not allowed in a tooltip? Pin
Eric Dahlvang13-Dec-06 3:16
Eric Dahlvang13-Dec-06 3:16 
AnswerRe: Is the ampersand character not allowed in a tooltip? Pin
Guffa13-Dec-06 11:02
Guffa13-Dec-06 11:02 
AnswerRe: Is the ampersand character not allowed in a tooltip? Pin
Eric Dahlvang11-Dec-06 10:36
Eric Dahlvang11-Dec-06 10:36 
GeneralRe: Is the ampersand character not allowed in a tooltip? Pin
Dan Neely12-Dec-06 2:19
Dan Neely12-Dec-06 2:19 
Questionsetup Pin
TAREQ F ABUZUHRI11-Dec-06 8:09
TAREQ F ABUZUHRI11-Dec-06 8:09 
AnswerRe: setup Pin
ednrgc11-Dec-06 8:23
ednrgc11-Dec-06 8:23 
QuestionXmlAttributes question Pin
kozu11-Dec-06 8:08
kozu11-Dec-06 8:08 
Hi,
I'm trying to serialize a class that has a table of items of another class. I need the output XML file to look like this:
<XmlSave name="Some name">
<Notes>Some notes</Notes>
<Items>
<Item Index="1"><elem>abc</elem></Item>
<Item Index="2"><elem>zzz</elem></Item>
</Items>
<Items>
<Item Index="100"><elem>ddd</elem></Item>
</Items>
</XmlSave>

I'm using the following classes:
public class Item
{
public Item()
{
}

[XmlAttribute("Index")]
public string index;

[XmlElement("elem")]
public string elem;
}

public class Items
{
public Item[] items;
}

public class XmlSave
{
public XmlSave()
{
}

[XmlAttribute("name")]
public string name;

[XmlElement("Notes")]
public string notes;

public Item[] items;
}

but this will generate additional nodes. I know it should be something really simple, but I just can't figure it out.. Frown | :-( .
Anybody? pretty please?

thanks
AnswerRe: XmlAttributes question Pin
gnadeem11-Dec-06 10:01
gnadeem11-Dec-06 10:01 
GeneralRe: XmlAttributes question Pin
kozu11-Dec-06 10:12
kozu11-Dec-06 10:12 
AnswerRe: XmlAttributes question Pin
Ravi Bhavnani11-Dec-06 11:19
professionalRavi Bhavnani11-Dec-06 11:19 
QuestionRegistry and RegKey Pin
Saamir11-Dec-06 7:54
Saamir11-Dec-06 7:54 
AnswerRe: Registry and RegKey Pin
lost in transition 11-Dec-06 8:00
lost in transition 11-Dec-06 8:00 
GeneralRe: Registry and RegKey Pin
Saamir11-Dec-06 8:04
Saamir11-Dec-06 8:04 
AnswerRe: Registry and RegKey Pin
Eric Dahlvang11-Dec-06 8:06
Eric Dahlvang11-Dec-06 8:06 
GeneralRe: Registry and RegKey Pin
Saamir11-Dec-06 8:09
Saamir11-Dec-06 8:09 
GeneralRe: Registry and RegKey Pin
Eric Dahlvang11-Dec-06 8:36
Eric Dahlvang11-Dec-06 8:36 
GeneralRe: Registry and RegKey Pin
Saamir11-Dec-06 8:44
Saamir11-Dec-06 8:44 
QuestionNUnit and ShadowCopyCache Pin
Jamie Nordmeyer11-Dec-06 7:12
Jamie Nordmeyer11-Dec-06 7:12 
AnswerRe: NUnit and ShadowCopyCache Pin
Judah Gabriel Himango11-Dec-06 7:31
sponsorJudah Gabriel Himango11-Dec-06 7:31 
GeneralRe: NUnit and ShadowCopyCache Pin
Jamie Nordmeyer11-Dec-06 7:36
Jamie Nordmeyer11-Dec-06 7:36 
AnswerRe: NUnit and ShadowCopyCache Pin
Jamie Nordmeyer11-Dec-06 8:36
Jamie Nordmeyer11-Dec-06 8:36 
QuestionVery Newbie: Calling An Application from My C# App Pin
Bruce Collins11-Dec-06 5:41
Bruce Collins11-Dec-06 5:41 
AnswerRe: Very Newbie: Calling An Application from My C# App Pin
Colin Angus Mackay11-Dec-06 6:04
Colin Angus Mackay11-Dec-06 6:04 
GeneralRe: Very Newbie: Calling An Application from My C# App Pin
CodeItWell11-Dec-06 9:03
CodeItWell11-Dec-06 9:03 

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.