Thanks for your response. I have an xml file, since it's huge I'm only
sending part of it.
I've used an xpath query to find some items a user might be looking for
within an xml file, it works just fine. Let's consider this scenario:
User is looking for "#cccc" and the program returns this path:
Test/Params/LinkColor/VisitedLinkColor/TextColor/Footer
but I need to have this :
Test/Params/LinkColor
Test/Params/VisitedLinkColor
Test/Params/TextColor/
Test/Params/Footer
So I'm looking for a way to find out where the path is ended and compare the
text inside the no. Do you have any suggestions on this ?
Thanks in advance for your help
Xml file:
<?xml version="1.0"?>
<Test TestName="empty" TestID="1" StyleUsage="URL"
xmlns="
http://www.test.com" TestProgrammer="me" DateTime="2/12/2004 5:00:54
PM">
<Params>
<BackgroundColor>#12509A</BackgroundColor>
<LinkColor>#cccccc</LinkColor>
<VisitedLinkColor>#cccccc</VisitedLinkColor>
<TextColor>#cccccc</TextColor>
<Direction>ltr</Direction>
<BackgroundImage>
</BackgroundImage>
<Header><table width='600' cellspacing='0' callpadding='0' border='0'
align='center'> <tr><td><img
src='
http://img.otxresearch.com/images/otxlogo.gif' alt='OTX' width='175'
height='62'>
</td></tr></table><br><br></Header>
<Footer><table align=center border='0' Width='600'>
<tr><td width='50%'><FONT FACE='Arial,Helvetica' Size='1'
COLOR='#cccccc'>COPYRIGHT <script
language='javascript'>document.write(String.fromCharCode(38));</script
>copy 2000 - 2004 OTX CORP. All rights reserved.</font></td>
<td width='50%' align='right'><FONT FACE='Arial,Helvetica' Size='1'
COLOR='#cccccc'>Technical Problems? <a
href='
http://www.test.com/support.asp'>Contact Us, please reference Test
content in the subject line</a></font></td></tr>
</table></Footer>
<CSS>Test.css</CSS>
<MouseOverMessage>
</MouseOverMessage>
</Params>