Support Forums

Full Version: parsing XML using Xpath and Javascript
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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">