Hi dorinbogdan,
Firstly thank you for all your help and being so patient with me.
Unfortunately both the code fragments did not yield the desired result... so i am taking the liberty of troubling you once again.
Lets look at it from start..
I have a XML file... its goes like this: (10-11 records here.)
[html]<?xml version="1.0" ?>
<data>
<Book>
<Title>Harry potter-1</Title>
<Pages>0</Pages>
<ISBN>158</ISBN>
</Book>
<Book>
<Title>Harry potter-2</Title>
<Pages>0</Pages>
<ISBN>158</ISBN>
</Book>
<Book>
<Title>Harry potter-3</Title>
<Pages>0</Pages>
<ISBN>158X</ISBN>
</Book>
<Book>
<Title>Harry potter-4</Title>
<Pages>0</Pages>
<ISBN>1586</ISBN>
</Book>
<Book>
<Title>Harry potter-5</Title>
<Pages>0</Pages>
<ISBN>159</ISBN>
</Book>
<Book>
<Title>Harry potter-6</Title>
<Pages>0</Pages>
<ISBN>1588</ISBN>
</Book>
<Book>
<Title>operating systems-Gelvin</Title>
<Pages>0</Pages>
<ISBN>15890</ISBN>
</Book>
<Book>
<Title>Indian culture-1</Title>
<Pages>0</Pages>
<ISBN>1586</ISBN>
</Book>
<Book>
<Title>Gandhi</Title>
<Pages>0</Pages>
<ISBN>15812</ISBN>
</Book>
<Book>
<Title>Pakistan and terrorism</Title>
<Pages>0</Pages>
<ISBN>1587</ISBN>
</Book>
<Book>
<Title>C-dac and cray computing in India</Title>
<Pages>0</Pages>
<ISBN>759</ISBN>
</Book>
</data>[/html]
When i do not use x-path (using general x-query and javascript) i get proper result... see the attached image :
http://img74.imageshack.us/my.php?image=opph7.jpg
Now how do i derive the same result by using X-path in Javascript. ???