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.
Ed*****@pwpsquared.net" <re****@pwpsquared.net> wrote in message
news:%2********************@TK2MSFTNGP12.phx.gbl.. .
GetElementsByTagName is one way to do it.
"C# newbie" <rs****@otxresearch.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl... Hi Guys,
I know XPath is a good method to search into an xml file but what
if you're looking for a specifc data which could be any where within the
xml file ? Should I consider all possibilities and paths in the xml file
?!!! Isn't better to have a recurrsive method to traverse the whole tree
instead of passing patterns to "SelectNode" method ?
Let me know if you have experience on this.
Thanks in advace
Newbie