Click here to Skip to main content
15,902,112 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: how to write a xml data reduced file? Pin
softty31-Aug-05 7:57
softty31-Aug-05 7:57 
Questionhow to use xml schema in c++ programming? Pin
HeartFriend29-Aug-05 18:24
HeartFriend29-Aug-05 18:24 
QuestionXSD:TIME and .NET Pin
Timothy_198229-Aug-05 3:48
Timothy_198229-Aug-05 3:48 
Questionxsd:time XML - .NET Pin
Anonymous29-Aug-05 3:44
Anonymous29-Aug-05 3:44 
QuestionMSXML DOM help Pin
johnnyXP27-Aug-05 3:07
johnnyXP27-Aug-05 3:07 
QuestionProblem loading XML Pin
rscr26-Aug-05 3:55
rscr26-Aug-05 3:55 
NewsA very simple problem with XML Pin
benqazou26-Aug-05 2:34
benqazou26-Aug-05 2:34 
AnswerRe: A very simple problem with XML Pin
DavidNohejl26-Aug-05 3:07
DavidNohejl26-Aug-05 3:07 
hi,
There are some different ways how you can do that. Maybe easiest (but not necessary most effective) is this:
XmlDocument doc = new XmlDocument();
doc.Load( fileNameofYourXml )
while( doc.Read() ) // read XML node by node
{
  if( doc.Name == "Lname" && doc.Value == Lname )
  {
    doc.Read(); // read following node (Fname node)
    return doc.Value; // return its value
  }
}


OR you can go with XPath:
doc.SelectSingleNode( string.Format("/person/following-sibling::Lname='{0}'", Lname) );


But I bet I got syntax for that XPath expresion wrong Blush | :O

Never forget: "Stay kul and happy" (I.A.)

David's thoughts / dnhsoftware.org / MyHTMLTidy
GeneralRe: A very simple problem with XML Pin
benqazou26-Aug-05 5:11
benqazou26-Aug-05 5:11 
GeneralRe: A very simple problem with XML Pin
DavidNohejl26-Aug-05 6:11
DavidNohejl26-Aug-05 6:11 
GeneralRe: A very simple problem with XML Pin
softty30-Aug-05 1:43
softty30-Aug-05 1:43 
QuestionParse XML to memory from a string Pin
25-Aug-05 1:25
suss25-Aug-05 1:25 
AnswerRe: Parse XML to memory from a string Pin
DavidNohejl25-Aug-05 3:55
DavidNohejl25-Aug-05 3:55 
QuestionWSE 2.0 Encryption Problem Pin
AmandeepSBhatia25-Aug-05 0:49
AmandeepSBhatia25-Aug-05 0:49 
JokeAreas generated by formatting objects Pin
wasife24-Aug-05 23:58
wasife24-Aug-05 23:58 
GeneralXML Serialization private field problem Pin
scchan198422-Aug-05 15:51
scchan198422-Aug-05 15:51 
Generalregarding webservices Pin
satishrg22-Aug-05 7:21
satishrg22-Aug-05 7:21 
GeneralRe: regarding webservices [edited] Pin
DavidNohejl22-Aug-05 9:11
DavidNohejl22-Aug-05 9:11 
Generalsample xml from xsd Pin
gustavo.sierra18-Aug-05 20:13
gustavo.sierra18-Aug-05 20:13 
GeneralRe: sample xml from xsd Pin
Christian Graus22-Aug-05 11:06
protectorChristian Graus22-Aug-05 11:06 
GeneralRe: sample xml from xsd Pin
Thanh Dao29-Aug-05 18:55
Thanh Dao29-Aug-05 18:55 
GeneralRe: sample xml from xsd Pin
gustavo.sierra29-Aug-05 20:26
gustavo.sierra29-Aug-05 20:26 
Generalhelp with xslt Pin
sonya987917-Aug-05 16:47
sonya987917-Aug-05 16:47 
GeneralRe: help with xslt Pin
Anonymous25-Aug-05 4:55
Anonymous25-Aug-05 4:55 
Generalhelp rendering with xslt Pin
sonya987917-Aug-05 16:40
sonya987917-Aug-05 16:40 

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.