183
rated 0 times
[
189]
[
6]
/ answers: 1 / hits: 110326
/ 12 Years ago, tue, march 27, 2012, 12:00:00
I want to convert an xml element like this:
<asin>B0013FRNKG</asin>
to string in javascript
I used XMLSerializer
:
new XMLSerializer().serializeToString(xml);
the string only shows on alert() and in the console. On the page it just says
[object Element][object Element]
I want to get the string.
More From » xml