Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: can I create rotatable widgets? Pin
Heath Stewart19-Oct-04 5:16
protectorHeath Stewart19-Oct-04 5:16 
QuestionIs using reflection 'cheating'? Pin
Anonymous18-Oct-04 4:05
Anonymous18-Oct-04 4:05 
AnswerRe: Is using reflection 'cheating'? Pin
afinnell18-Oct-04 5:31
afinnell18-Oct-04 5:31 
AnswerRe: Is using reflection 'cheating'? Pin
Steven Campbell18-Oct-04 14:50
Steven Campbell18-Oct-04 14:50 
Generallooking for a user modeling open source written in c# Pin
Pupik36018-Oct-04 2:57
Pupik36018-Oct-04 2:57 
Generaltwo xml doubts Pin
ee9903518-Oct-04 1:26
ee9903518-Oct-04 1:26 
GeneralRe: two xml doubts Pin
Stanciu Vlad18-Oct-04 5:16
Stanciu Vlad18-Oct-04 5:16 
GeneralRe: two xml doubts Pin
Heath Stewart18-Oct-04 7:23
protectorHeath Stewart18-Oct-04 7:23 
The xmlns you should not worry about. It will not affect your XML-related code. If you're worried about it for asthetic reasons, then you should either define a namespace (in most cases, your XML documents should have unique namespaces anyway) or write the raw element using an XmlTextWriter instead, calling the WriteRaw method. Other methods in the XmlTextWriter would also help as well, but you need to read the class documentation in the .NET Framework SDK to gain a better understanding.

For second problem, as the other user mentioned below, just create yet another element like you are now, or use elem.InnerXml propety like so:
elem.InnerXml = "<filetype>mgp</filetype><name>deco</name>";


This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
QuestionHow to convert VC++ to C# code? Pin
momer18-Oct-04 1:22
momer18-Oct-04 1:22 
AnswerRe: How to convert VC++ to C# code? Pin
Heath Stewart18-Oct-04 7:14
protectorHeath Stewart18-Oct-04 7:14 
GeneralRe: How to convert VC++ to C# code? Pin
momer18-Oct-04 16:51
momer18-Oct-04 16:51 
GeneralText Wrap for ListView in C# Pin
Member 141415918-Oct-04 1:09
Member 141415918-Oct-04 1:09 
GeneralRe: Text Wrap for ListView in C# Pin
Heath Stewart18-Oct-04 7:11
protectorHeath Stewart18-Oct-04 7:11 
GeneralRe: Text Wrap for ListView in C# Pin
Sundar K18-Oct-04 18:52
sussSundar K18-Oct-04 18:52 
GeneralRe: Text Wrap for ListView in C# Pin
Heath Stewart19-Oct-04 5:32
protectorHeath Stewart19-Oct-04 5:32 
GeneralRe: Text Wrap for ListView in C# Pin
Member 141415919-Oct-04 13:35
Member 141415919-Oct-04 13:35 
GeneralWebSerivce output xml Pin
jzb18-Oct-04 0:42
jzb18-Oct-04 0:42 
GeneralRe: WebSerivce output xml Pin
Heath Stewart18-Oct-04 7:04
protectorHeath Stewart18-Oct-04 7:04 
GeneralTreeView DragDrop image Pin
dorothyDorothy17-Oct-04 23:39
dorothyDorothy17-Oct-04 23:39 
GeneralRe: TreeView DragDrop image Pin
Heath Stewart18-Oct-04 6:52
protectorHeath Stewart18-Oct-04 6:52 
GeneraldateTime parser Pin
Rob Tomson17-Oct-04 23:27
Rob Tomson17-Oct-04 23:27 
GeneralRe: dateTime parser Pin
J4amieC18-Oct-04 0:28
J4amieC18-Oct-04 0:28 
GeneralTreeView/ListView item selection and context menu Pin
EnkelIk17-Oct-04 21:44
EnkelIk17-Oct-04 21:44 
GeneralRe: TreeView/ListView item selection and context menu Pin
petst17-Oct-04 22:06
petst17-Oct-04 22:06 
GeneralRe: TreeView/ListView item selection and context menu Pin
afinnell18-Oct-04 5:35
afinnell18-Oct-04 5:35 

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.