Click here to Skip to main content
14,932,748 members
Home / Discussions / XML / XSL


AnswerRe: How to populate an XmlNamespaceManager Pin
Ger Hayden13-Nov-10 7:11
MemberGer Hayden13-Nov-10 7:11 
AnswerRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult15-Nov-10 2:38
professionalPIEBALDconsult15-Nov-10 2:38 
GeneralRe: How to populate an XmlNamespaceManager -- update Pin
lorenkins16-Nov-10 6:45
Memberlorenkins16-Nov-10 6:45 
GeneralRe: How to populate an XmlNamespaceManager -- update Pin
PIEBALDconsult16-Nov-10 18:22
professionalPIEBALDconsult16-Nov-10 18:22 
QuestionRead XML in C# Pin
ShafiqA3-Oct-10 19:02
MemberShafiqA3-Oct-10 19:02 
AnswerRe: Read XML in C# Pin
Ger Hayden16-Oct-10 3:06
MemberGer Hayden16-Oct-10 3:06 
AnswerRe: Read XML in C# Pin
PIEBALDconsult13-Nov-10 4:47
professionalPIEBALDconsult13-Nov-10 4:47 
AnswerRe: Read XML in C# Pin
Tarun.K.S19-Nov-10 23:16
MemberTarun.K.S19-Nov-10 23:16 
Here is the Answer!

XmlDocument xmlDoc =new XmlDocument;
string myXPath="/Root/Data[@Gender='Male']";  //so with this you can get only male nodes

XmlNodeList NodeList=xmlDoc.SelectNodes(myXPath);  //Selects all the male nodes

XmlNode xmlNod=NodeList(0); //The first male node

Int myId=xmlNod.Attributes("id").Value; //Returns the id of the first Male node

Cheers! Smile | :)
GeneralRe: Read XML in C# Pin
Tarun.K.S20-Nov-10 1:54
MemberTarun.K.S20-Nov-10 1:54 
AnswerRe: Read XML in C# Pin
Yvan Rodrigues13-Dec-10 14:42
professionalYvan Rodrigues13-Dec-10 14:42 
Questionxml Pin
vijiajai25-Sep-10 19:37
Membervijiajai25-Sep-10 19:37 
QuestionNewDataset in XSD Pin
indian14320-Sep-10 5:05
Memberindian14320-Sep-10 5:05 
AnswerRe: I got the answer for this Pin
indian14320-Sep-10 6:40
Memberindian14320-Sep-10 6:40 
QuestionUpating xml in C# Pin
Sonar8724-Aug-10 22:56
MemberSonar8724-Aug-10 22:56 
AnswerRe: Upating xml in C# Pin
SeMartens25-Aug-10 4:27
MemberSeMartens25-Aug-10 4:27 
GeneralRe: Upating xml in C# Pin
Sonar8725-Aug-10 10:11
MemberSonar8725-Aug-10 10:11 
Questionxlst - format number function Pin
Simon_Whale4-Aug-10 4:15
professionalSimon_Whale4-Aug-10 4:15 
AnswerRe: xlst - format number function Pin
Stuart Dootson8-Aug-10 5:43
professionalStuart Dootson8-Aug-10 5:43 
Questionxsl output in existing file Pin
lawrenceinba2-Aug-10 1:17
Memberlawrenceinba2-Aug-10 1:17 
AnswerRe: xsl output in existing file Pin
Stuart Dootson8-Aug-10 5:58
professionalStuart Dootson8-Aug-10 5:58 
Questionxml schema understanding Pin
jainiraj29-Jul-10 19:20
Memberjainiraj29-Jul-10 19:20 
QuestionJavaScript in XSLT Pin
rathishps29-Jul-10 3:32
Memberrathishps29-Jul-10 3:32 
QuestionODX checker tool Pin
jainiraj28-Jul-10 2:20
Memberjainiraj28-Jul-10 2:20 
Questionhow to deserialize xsi:type attribute in C# Pin
jainiraj26-Jul-10 1:04
Memberjainiraj26-Jul-10 1:04 
Questionjavascript in xsl Pin
lawrenceinba25-Jul-10 23:53
Memberlawrenceinba25-Jul-10 23: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.