Click here to Skip to main content
15,885,216 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 20:19
Vishnu Narayan Mishra14-Nov-07 20:19 
AnswerRe: How to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 22:23
Vishnu Narayan Mishra14-Nov-07 22:23 
Questionhow to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra14-Nov-07 2:03
Vishnu Narayan Mishra14-Nov-07 2:03 
AnswerRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike14-Nov-07 5:02
led mike14-Nov-07 5:02 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra19-Nov-07 20:03
Vishnu Narayan Mishra19-Nov-07 20:03 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike20-Nov-07 5:39
led mike20-Nov-07 5:39 
Questionhow can we go through such kinds of tag in xml like <PopupHTML /> Pin
Vishnu Narayan Mishra13-Nov-07 23:17
Vishnu Narayan Mishra13-Nov-07 23:17 
AnswerRe: how can we go through such kinds of tag in xml like Pin
George L. Jackson14-Nov-07 1:53
George L. Jackson14-Nov-07 1:53 
You need to read the documentation, and there are a lot of examples available on Code Project and the rest of the internet. Anyways, here is an example:

using System;
using System.Xml;

namespace XmlExample
{
class Program
{
static void Main(string[] args)
{
string xml =
"<?xml version='1.0'?>\n"
+ "<nodes>\n"
+ "\t<node/>\n"
+ "</nodes>\n";

XmlDocument xml_doc = new XmlDocument();
xml_doc.PreserveWhitespace = true;
xml_doc.LoadXml(xml);

XmlNode node = xml_doc.SelectSingleNode("//nodes/node");

if (node != null)
{
XmlText text = xml_doc.CreateTextNode("Hello, World!");
node.AppendChild(text);
}

Console.WriteLine(xml_doc.InnerXml);
}
}
}

"We make a living by what we get, we make a life by what we give." --Winston Churchill

QuestionHow to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 2:17
Vishnu Narayan Mishra13-Nov-07 2:17 
AnswerRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
led mike13-Nov-07 6:18
led mike13-Nov-07 6:18 
GeneralRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 22:24
Vishnu Narayan Mishra13-Nov-07 22:24 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. Pin
Vishnu Narayan Mishra12-Nov-07 22:22
Vishnu Narayan Mishra12-Nov-07 22:22 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. [modified] Pin
Vishnu Narayan Mishra12-Nov-07 21:14
Vishnu Narayan Mishra12-Nov-07 21:14 
QuestionEdititng the tag of XML Pin
SreejithAchutan8-Nov-07 17:04
SreejithAchutan8-Nov-07 17:04 
AnswerRe: Edititng the tag of XML Pin
led mike9-Nov-07 5:19
led mike9-Nov-07 5:19 
Questionhow to append node with attributes after an node in XML + C# [modified] Pin
Vishnu Narayan Mishra7-Nov-07 20:52
Vishnu Narayan Mishra7-Nov-07 20:52 
AnswerRe: how to append node with attributes after an node in XML + C# Pin
pmarfleet8-Nov-07 9:51
pmarfleet8-Nov-07 9:51 
QuestionSending XML Soap Messages, C# Pin
AssemblySoft5-Nov-07 6:18
AssemblySoft5-Nov-07 6:18 
AnswerDouble post Pin
pmarfleet5-Nov-07 6:54
pmarfleet5-Nov-07 6:54 
QuestionXML problems Pin
kurt194-Nov-07 23:31
kurt194-Nov-07 23:31 
AnswerRe: XML problems Pin
led mike5-Nov-07 7:21
led mike5-Nov-07 7:21 
GeneralRe: XML problems Pin
kurt195-Nov-07 13:56
kurt195-Nov-07 13:56 
GeneralRe: XML problems Pin
George L. Jackson5-Nov-07 14:41
George L. Jackson5-Nov-07 14:41 
GeneralRe: XML problems Pin
kurt195-Nov-07 15:36
kurt195-Nov-07 15:36 
AnswerRe: XML problems Pin
George L. Jackson6-Nov-07 2:06
George L. Jackson6-Nov-07 2:06 

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.