Click here to Skip to main content
15,891,621 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXQuery Pin
Lutosław9-Jan-10 23:40
Lutosław9-Jan-10 23:40 
AnswerRe: XQuery Pin
Stuart Dootson12-Jan-10 3:07
professionalStuart Dootson12-Jan-10 3:07 
GeneralRe: XQuery Pin
Lutosław12-Jan-10 4:02
Lutosław12-Jan-10 4:02 
AnswerRe: XQuery Pin
Lutosław12-Jan-10 4:01
Lutosław12-Jan-10 4:01 
QuestionXML opening with IE Pin
Aljaz1117-Jan-10 4:07
Aljaz1117-Jan-10 4:07 
AnswerRe: XML opening with IE Pin
vivasaayi7-Jan-10 18:20
vivasaayi7-Jan-10 18:20 
QuestionXML With C# Pin
jojoba20105-Jan-10 22:23
jojoba20105-Jan-10 22:23 
AnswerRe: XML With C# Pin
vivasaayi7-Jan-10 18:45
vivasaayi7-Jan-10 18:45 
class Program
    {
        class Sample
        {
            public Sample()
            {
                string xmlString = "<xml><item>a<!--Item A--></item><item>b<!--Item B--></item><item>b<!--Item C--></item></xml>";

                XmlDocument document = new XmlDocument();
                document.LoadXml(xmlString);

                //Navigate throgh all the nodes and check if a node is a comment
                Console.WriteLine("Method 1");

                XmlNodeList nodes = document.SelectNodes("xml/item");

                foreach (XmlNode childnode in nodes)
                {
                    if (childnode.LastChild.NodeType == XmlNodeType.Comment)
                    {
                        Console.WriteLine(childnode.LastChild.InnerText);
                    }
                }

                //Using Exact XQuery
                Console.WriteLine("\n\nMethod 2");
                
                nodes = document.SelectNodes("xml/item/comment()");

                foreach (XmlNode childnode in nodes)
                {   
                    Console.WriteLine(childnode.InnerText);                    
                }
            }
        }

        static void Main(string[] args)
        {
            Sample sample = new Sample();
            Console.ReadLine();
        }
}


Hope it helps!
QuestionHow can I generate multiple classes from xsd’s with common includes? Pin
sri_00994-Jan-10 2:46
sri_00994-Jan-10 2:46 
QuestionGenerate Dynamic controls using XSLT Pin
getaccessyr3-Jan-10 22:33
getaccessyr3-Jan-10 22:33 
AnswerRe: Generate Dynamic controls using XSLT Pin
Not Active4-Jan-10 1:19
mentorNot Active4-Jan-10 1:19 
QuestionGetting zero elements with xmldocument.selectnodes Pin
Haim Nachum2-Jan-10 10:55
Haim Nachum2-Jan-10 10:55 
AnswerRe: Getting zero elements with xmldocument.selectnodes Pin
Dexter Legaspi20-Jan-10 16:13
Dexter Legaspi20-Jan-10 16:13 
QuestionHelp with xml within dll file Pin
LeeWhit28-Dec-09 19:36
LeeWhit28-Dec-09 19:36 
Question2 xml used from the same hmtl page Pin
Russell'20-Dec-09 1:04
Russell'20-Dec-09 1:04 
QuestionXSL +query string value Pin
sangeethanarayan18-Dec-09 2:26
sangeethanarayan18-Dec-09 2:26 
AnswerRe: XSL +query string value Pin
Brij21-Dec-09 7:38
mentorBrij21-Dec-09 7:38 
QuestionXPATH problem Pin
Rohit16db15-Dec-09 3:23
Rohit16db15-Dec-09 3:23 
AnswerRe: XPATH problem Pin
Stuart Dootson15-Dec-09 11:31
professionalStuart Dootson15-Dec-09 11:31 
QuestionMissunderstanding schema namespaces Pin
FJJCENTU6-Dec-09 2:00
FJJCENTU6-Dec-09 2:00 
AnswerRe: Missunderstanding schema namespaces Pin
Dimitri Witkowski27-Dec-09 0:08
Dimitri Witkowski27-Dec-09 0:08 
QuestionXML ASP to ASP.net with url parameters [modified] Pin
smichael4-Dec-09 15:59
smichael4-Dec-09 15:59 
QuestionCreate HTML with XML including Images and XSL Pin
FJJCENTU4-Dec-09 6:58
FJJCENTU4-Dec-09 6:58 
AnswerRe: Create HTML with XML including Images and XSL Pin
Brij14-Dec-09 7:51
mentorBrij14-Dec-09 7:51 
QuestionA XMLHttpRequest Request: It looked simple enough, now I just want it to work. Pin
Greth30-Nov-09 3:45
Greth30-Nov-09 3:45 

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.