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 <longitude>in javascript (in a variable).
What is the cleanest way?
Can this be done without XSLT (without creating dummy elements)?
Update:
I explained very poorly.
XML is dynamically generated on the server, then XSLT passes in the same place and HTML is received, which is sent in the browser.
Probably, in HTML you need to make a dummy element in which you need to write the longitude value, and then read its value in javascript from the element on the page.
How can I do it differently?
source
share