How to get the value of attribute of xml element containing URL
Hi there,
I have an xml node like this
- <warnings url="http://abc.xyz.com/test.html?xy=15">
- <<event desc="this is a test">
- </warnings>
I tried the following line of code
- console.log($(this).find("warnings").attr("url"));
which gives me undefined but when I try
- console.log($(this).find("event").attr("desc"));
I get "this is a test". Because the URL has some special characters such as : / ? = am I getting undefined? How do I get this url value?
Thanks for your help
Joe