Click here to Skip to main content
15,913,709 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Extract Xml elements, displays in DataGridView and enables editing Pin
led mike30-May-06 10:47
led mike30-May-06 10:47 
GeneralRe: Extract Xml elements, displays in DataGridView and enables editing [modified] Pin
sepsep061-Jun-06 7:43
sepsep061-Jun-06 7:43 
GeneralRe: Extract Xml elements, displays in DataGridView and enables editing Pin
led mike1-Jun-06 7:58
led mike1-Jun-06 7:58 
GeneralRe: Extract Xml elements, displays in DataGridView and enables editing [modified] Pin
sepsep061-Jun-06 14:32
sepsep061-Jun-06 14:32 
QuestionYet another special character problem Pin
Arrun26-May-06 13:12
Arrun26-May-06 13:12 
AnswerRe: Yet another special character problem [modified] Pin
George L. Jackson26-May-06 17:35
George L. Jackson26-May-06 17:35 
GeneralRe: Yet another special character problem [modified] Pin
Arrun27-May-06 1:13
Arrun27-May-06 1:13 
GeneralRe: Yet another special character problem [modified] Pin
George L. Jackson27-May-06 6:59
George L. Jackson27-May-06 6:59 
If your source data contains an "&", it will be converted to "&" and placed into your XML document. When you parse your XML document, the "&" will be converted back to a "&".

However, you must use CDATA to store "&" as is:
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace AmpXml
{
    class Program
    {
        static void Main(string[] args)
        {
            XmlDocument doc = new XmlDocument();

            XmlNode node = doc.CreateNode(
                XmlNodeType.Element, "amps", string.Empty);

            doc.AppendChild(node);

            node = doc.CreateNode(
                XmlNodeType.Element, "amp", string.Empty);

            doc.DocumentElement.AppendChild(node);

            XmlCDataSection cdata = doc.CreateCDataSection(
                "&&>>&&<<&&");

            node.AppendChild(cdata);

            Console.WriteLine(doc.OuterXml);
        }
    }
}


-- modified at 13:00 Saturday 27th May, 2006
QuestionProblem Writing & URGENT PLS HELP Pin
Arrun26-May-06 9:48
Arrun26-May-06 9:48 
AnswerRe: Problem Writing & URGENT PLS HELP Pin
George L. Jackson26-May-06 17:37
George L. Jackson26-May-06 17:37 
QuestionHelp me for the use of AJAX in ASP Pin
Jesal Rana25-May-06 22:39
Jesal Rana25-May-06 22:39 
QuestionCode Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair25-May-06 6:59
Josh Blair25-May-06 6:59 
AnswerRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike25-May-06 7:07
led mike25-May-06 7:07 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair25-May-06 7:19
Josh Blair25-May-06 7:19 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike25-May-06 19:54
led mike25-May-06 19:54 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 6:51
Josh Blair26-May-06 6:51 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike26-May-06 7:04
led mike26-May-06 7:04 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 7:42
Josh Blair26-May-06 7:42 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 8:21
Josh Blair26-May-06 8:21 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
led mike26-May-06 8:59
led mike26-May-06 8:59 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
led mike26-May-06 8:32
led mike26-May-06 8:32 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Josh Blair26-May-06 10:46
Josh Blair26-May-06 10:46 
AnswerRe: Code Generator that writes code to generate and XML doc structure? Pin
Dustin Metzgar26-May-06 7:42
Dustin Metzgar26-May-06 7:42 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Josh Blair26-May-06 8:28
Josh Blair26-May-06 8:28 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Dustin Metzgar26-May-06 8:34
Dustin Metzgar26-May-06 8:34 

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.