Get variable value from XML to JavaScript. Pure way.
- by kalininew
I have XML:
<point>
...
<longitude>34.123123</longitude>
</point>
<point>
...
<longitude>11.12534534</longitude>
</point>
<point>
...
<longitude>32.567653</longitude>
</point>
<point>
...
<longitude>33.345345</longitude>
</point>
...
Task:
get values of <longitude> in javascript (in variable).
Which is purest way?
It is possible to do it without XSLT (without making dummy elements)?