Support Forums
parsing XML using Xpath and Javascript - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Networking, Wifi, and Internet Connection Help (https://www.supportforums.net/forumdisplay.php?fid=29)
+----- Forum: Web Browser Help (https://www.supportforums.net/forumdisplay.php?fid=45)
+------ Forum: Firefox Browser (https://www.supportforums.net/forumdisplay.php?fid=65)
+------ Thread: parsing XML using Xpath and Javascript (/showthread.php?tid=9929)



parsing XML using Xpath and Javascript - Kostya - 05-08-2008

Dear developers,
Please, could you help me with my problem?
I am trying to get TITLEs from Atom.XML file using Xpath "/bookstore/book/title". It works in IE, but doesn't in Firefox. I think the problem is in namespace and some prefix that generated by <feed xmlns="http://www.w3.org/2005/Atom">. I can't delete that field from Xml file.
What JavaScript code can silve the problem? How can I get the titles?
Thank you!
Kostya
PS: XML file header

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">