Get variable value from XML to JavaScript. Pure way.
Posted
by kalininew
on Stack Overflow
See other posts from Stack Overflow
or by kalininew
Published on 2010-04-20T14:15:04Z
Indexed on
2010/04/20
14:23 UTC
Read the original article
Hit count: 261
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)?
© Stack Overflow or respective owner