Click here to Skip to main content
15,917,174 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Xml question ... Pin
devboycpp8-Sep-06 5:08
devboycpp8-Sep-06 5:08 
GeneralRe: Xml question ... Pin
Dustin Metzgar8-Sep-06 5:46
Dustin Metzgar8-Sep-06 5:46 
AnswerRe: Xml question ... Pin
led mike8-Sep-06 4:48
led mike8-Sep-06 4:48 
QuestionRe: Xml question ... Pin
devboycpp8-Sep-06 5:37
devboycpp8-Sep-06 5:37 
AnswerRe: Xml question ... Pin
led mike8-Sep-06 6:00
led mike8-Sep-06 6:00 
GeneralRe: Xml question ... Pin
devboycpp8-Sep-06 5:52
devboycpp8-Sep-06 5:52 
GeneralRe: Xml question ... Pin
led mike8-Sep-06 6:03
led mike8-Sep-06 6:03 
AnswerRe: Xml question ... Pin
BoneSoft8-Sep-06 5:57
BoneSoft8-Sep-06 5:57 
I'd suggest using an XML serializable model. You can use it to read and write the file using XmlSerilaizer and just deal with the model, not the XML.

using System;
using System.Xml.Serialization;

namespace XmlEntities {
    [XmlRoot("File")]
    public class File {
        private Language[] element_language;

        [XmlElement("language")]
        public Language[] Languages {
            get { return element_language; }
            set { element_language = value; }
        }
    }

    public class Language {
        private System.Int32 attribute_id;
        private Entry[] element_entry;

        [XmlAttribute("id")]
        public System.Int32 Id {
            get { return attribute_id; }
            set { attribute_id = value; }
        }

        [XmlElement("entry")]
        public Entry[] Entries {
            get { return element_entry; }
            set { element_entry = value; }
        }
    }

    public class Entry {
        private System.String attribute_name;
        private System.String attribute_value;

        [XmlAttribute("name")]
        public System.String Name {
            get { return attribute_name; }
            set { attribute_name = value; }
        }

        [XmlAttribute("value")]
        public System.String Value {
            get { return attribute_value; }
            set { attribute_value = value; }
        }
    }
}


Generated from an XML sample with Skeleton Crew 2.0[^] But you can use xsd.exe if you don't mind slop code.



Try code model generation tools at BoneSoft.com.

QuestionHow to include external XSL File in Main XSL File ? Pin
Rizwan Bashir8-Sep-06 2:58
Rizwan Bashir8-Sep-06 2:58 
AnswerRe: How to include external XSL File in Main XSL File ? Pin
Dustin Metzgar8-Sep-06 3:30
Dustin Metzgar8-Sep-06 3:30 
Questionchanging an attribute [modified] Pin
Ista7-Sep-06 17:10
Ista7-Sep-06 17:10 
QuestionXPathNavigator.Select returns only 1 item Pin
kozu7-Sep-06 16:50
kozu7-Sep-06 16:50 
AnswerRe: XPathNavigator.Select returns only 1 item Pin
George L. Jackson7-Sep-06 18:22
George L. Jackson7-Sep-06 18:22 
GeneralRe: XPathNavigator.Select returns only 1 item Pin
kozu8-Sep-06 6:31
kozu8-Sep-06 6:31 
Questioncopy entire file with xslt Pin
Ista7-Sep-06 11:24
Ista7-Sep-06 11:24 
AnswerRe: copy entire file with xslt Pin
led mike7-Sep-06 11:51
led mike7-Sep-06 11:51 
QuestionNeed tutorial for loading attributes to dropdownlist Pin
oohungoo6-Sep-06 23:47
oohungoo6-Sep-06 23:47 
QuestionWhat version of MSXML can be used in Windows NT Pin
Pradosh Tapan Datta6-Sep-06 21:18
Pradosh Tapan Datta6-Sep-06 21:18 
AnswerRe: What version of MSXML can be used in Windows NT Pin
led mike7-Sep-06 12:00
led mike7-Sep-06 12:00 
QuestionVS - XSD text editor - intelliscensy(autofill) Pin
El'Cachubrey5-Sep-06 23:38
El'Cachubrey5-Sep-06 23:38 
Questionget specific child nodes in xmlnodelist Pin
playout5-Sep-06 21:17
playout5-Sep-06 21:17 
Question.xls to .xml Pin
fmardani4-Sep-06 22:58
fmardani4-Sep-06 22:58 
AnswerRe: .xls to .xml Pin
Bhupi Bhai5-Sep-06 1:43
Bhupi Bhai5-Sep-06 1:43 
AnswerRe: .xls to .xml Pin
sugumar_winner6-Sep-06 18:43
sugumar_winner6-Sep-06 18:43 
Questioncdata for attribute Pin
NikoTanghe31-Aug-06 22:53
NikoTanghe31-Aug-06 22:53 

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.