Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 3:34
George_George5-Jan-09 3:34 
GeneralRe: how to use XPath to parse the XML file? Pin
Le centriste5-Jan-09 3:55
Le centriste5-Jan-09 3:55 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:33
George_George5-Jan-09 22:33 
GeneralRe: how to use XPath to parse the XML file? Pin
Abhijit Jana5-Jan-09 4:06
professionalAbhijit Jana5-Jan-09 4:06 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:34
George_George5-Jan-09 22:34 
GeneralRe: how to use XPath to parse the XML file? Pin
led mike5-Jan-09 5:05
led mike5-Jan-09 5:05 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:34
George_George5-Jan-09 22:34 
AnswerRe: how to use XPath to parse the XML file? Pin
Abhijit Jana5-Jan-09 4:03
professionalAbhijit Jana5-Jan-09 4:03 
Try This one
XPathDocument doc = new XPathDocument(XmlFilePath);
XPathNavigator XPathnav = doc.CreateNavigator();
XPathExpression expr; 
expr = XPathnav.Compile("/Abc/rules");
XPathNodeIterator XpathIterator = XPathnav.Select(expr);

try
{
  while (XpathIterator .MoveNext())
  {
     XPathNavigator IteXPathnav= XpathIterator .Current.Clone();
     Console.WriteLine("name: " + IteXPathnav.Value);
  }
}
catch(Exception ex) 
{
   Console.WriteLine(ex.Message);
}


This is For Further Study[^]

cheers,
Abhijit

GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:35
George_George5-Jan-09 22:35 
GeneralRe: how to use XPath to parse the XML file? Pin
Abhijit Jana6-Jan-09 0:53
professionalAbhijit Jana6-Jan-09 0:53 
QuestionRun .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed. Pin
Dattatraya K5-Jan-09 2:51
Dattatraya K5-Jan-09 2:51 
AnswerCrossPost : Please Ignore Pin
Abhijit Jana5-Jan-09 2:57
professionalAbhijit Jana5-Jan-09 2:57 
AnswerRe: Run .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed. Pin
Dave Kreskowiak5-Jan-09 3:51
mveDave Kreskowiak5-Jan-09 3:51 
QuestionInner/Nested classes with NHibernate Pin
devvvy5-Jan-09 2:41
devvvy5-Jan-09 2:41 
AnswerRe: Inner/Nested classes with NHibernate Pin
realbart10-Sep-12 5:03
realbart10-Sep-12 5:03 
GeneralRe: Inner/Nested classes with NHibernate Pin
devvvy10-Sep-12 14:37
devvvy10-Sep-12 14:37 
QuestionThread safe issue in string operation Pin
George_George5-Jan-09 2:07
George_George5-Jan-09 2:07 
AnswerRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 2:30
moon_stick5-Jan-09 2:30 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 3:27
George_George5-Jan-09 3:27 
GeneralRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 3:36
moon_stick5-Jan-09 3:36 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 3:40
George_George5-Jan-09 3:40 
GeneralRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 4:10
moon_stick5-Jan-09 4:10 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 22:42
George_George5-Jan-09 22:42 
GeneralRe: Thread safe issue in string operation Pin
moon_stick6-Jan-09 0:34
moon_stick6-Jan-09 0:34 
GeneralRe: Thread safe issue in string operation Pin
George_George6-Jan-09 0:40
George_George6-Jan-09 0: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.