Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 10:35
protectorChristian Graus17-Oct-04 10:35 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:48
Kiran Satish17-Oct-04 10:48 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 10:59
protectorChristian Graus17-Oct-04 10:59 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 10:53
Kiran Satish17-Oct-04 10:53 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Christian Graus17-Oct-04 11:01
protectorChristian Graus17-Oct-04 11:01 
GeneralRe: help....How to create a 48bpp bitmap ? Pin
Kiran Satish17-Oct-04 11:09
Kiran Satish17-Oct-04 11:09 
GeneralRead and write to a file! Pin
ee9903514-Oct-04 5:09
ee9903514-Oct-04 5:09 
GeneralRe: Read and write to a file! Pin
Heath Stewart14-Oct-04 6:26
protectorHeath Stewart14-Oct-04 6:26 
The number of tags isn't so much an issue as the size of the file (tags names could be small, so the file could also be smaller). The easiest way is to load the document into an XmlDocument, use XPath to find the node, and add your node:
XmlDocument doc = new XmlDocument();
doc.Load("data.xml");
XmlNode node = doc.SelectSingleNode("//MediaInformation");
if (node != null)
{
  XmlElement elem = doc.CreatElement("name");
  elem.InnerText = "value";
  node.AppendChild(elem);
}
This is definitely only an example, though, since without knowing more about what you're trying to do I can make too many assumptions. If you're XML documents uses a namespace (typically a good idea if you allow for mixed schemas) then you'll need to use an XmlNamespaceManager, too. You can find more information and examples in the .NET Framework SDK.

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]
GeneralRe: Read and write to a file! Pin
ee9903514-Oct-04 7:10
ee9903514-Oct-04 7:10 
GeneralRe: Read and write to a file! Pin
Heath Stewart14-Oct-04 7:15
protectorHeath Stewart14-Oct-04 7:15 
GeneralRe: Read and write to a file! Pin
ee9903514-Oct-04 7:36
ee9903514-Oct-04 7:36 
GeneralRe: Read and write to a file! Pin
ee9903515-Oct-04 1:51
ee9903515-Oct-04 1:51 
GeneralRe: Read and write to a file! Pin
Heath Stewart15-Oct-04 6:21
protectorHeath Stewart15-Oct-04 6:21 
GeneralRe: Read and write to a file! Pin
leppie14-Oct-04 8:49
leppie14-Oct-04 8:49 
GeneralRe: Read and write to a file! Pin
Heath Stewart14-Oct-04 8:58
protectorHeath Stewart14-Oct-04 8:58 
GeneralRe: Read and write to a file! Pin
ee9903515-Oct-04 1:59
ee9903515-Oct-04 1:59 
GeneralInvoking Secure Web Services Pin
David Salter14-Oct-04 3:53
David Salter14-Oct-04 3:53 
GeneralRe: Invoking Secure Web Services Pin
Heath Stewart14-Oct-04 10:13
protectorHeath Stewart14-Oct-04 10:13 
Generalpropertygrid Pin
AlanJones14-Oct-04 3:43
AlanJones14-Oct-04 3:43 
GeneralSystem.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky14-Oct-04 3:33
Serge Lobko-Lobanovsky14-Oct-04 3:33 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Heath Stewart14-Oct-04 9:55
protectorHeath Stewart14-Oct-04 9:55 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky14-Oct-04 21:56
Serge Lobko-Lobanovsky14-Oct-04 21:56 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky26-Oct-04 6:14
Serge Lobko-Lobanovsky26-Oct-04 6:14 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
ave\kevinchen3-May-09 23:27
ave\kevinchen3-May-09 23:27 
GeneralFilling a closed contour in a given bitmap Pin
E6AD14-Oct-04 2:52
E6AD14-Oct-04 2:52 

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.