Hi Richard,
Thanks for your response but it was kind of general. As far as, I know
it works for XML TagNames but I'm looking for data which are in any place of
an xml file not any tag name. Let's say I have an xml file as below and my
program should find any thing like "#19384A" or "center" in below code. Does
the "GetElementsByTagName" works for this too ?
<?xml version="1.0"?>
<Form SurveyName="empty" SurveyID="1" StyleUsage="URL"
xmlns=http://www.yahoo.com SurveyProgrammer="ramsin" DateTime="2/12/2004
5:00:54 PM">
<Params>
<BackgroundColor>#19384A</BackgroundColor>
<LinkColor>#ffffff</LinkColor>
<VisitedLinkColor>#ffffff</VisitedLinkColor>
<TextColor>#ffffff</TextColor>
<Direction>ltr</Direction>
<BackgroundImage>
</BackgroundImage>
<Header><table width='600' cellspacing='0' callpadding='0' border='0'
align='center'>
</Params>
....
.....
......
......
......
</Form>
Thanks
"Richard T.
Edwards@pwpsquared.net" <redwar@pwpsquared.net> wrote in message
news:%23mqmr%23z%23DHA.2484@TK2MSFTNGP12.phx.gbl.. .[color=blue]
> GetElementsByTagName is one way to do it.
>
>
> "C# newbie" <rsavra@otxresearch.com> wrote in message
> news:%23$AvUhz%23DHA.1452@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi Guys,
> >
> > I know XPath is a good method to search into an xml file but what[/color][/color]
if[color=blue][color=green]
> > you're looking for a specifc data which could be any where within the[/color][/color]
xml[color=blue][color=green]
> > file ? Should I consider all possibilities and paths in the xml file[/color][/color]
?!!![color=blue][color=green]
> > Isn't better to have a recurrsive method to traverse the whole tree[/color]
> instead[color=green]
> > of passing patterns to "SelectNode" method ?
> >
> > Let me know if you have experience on this.
> >
> > Thanks in advace
> > Newbie
> >
> >[/color]
>
>[/color]