You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Run these two lines in your JavaScript console:
1. var xmlStr = "<xml><title name='MODE'>show</title><title
name='VAR'>me</title></xml>"
2. X2JS.json2xml_str(X2JS.xml_str2json(xmlStr))
What is the expected output? What do you see instead?
Expected output: "<xml><title name='MODE'>show</title><title
name='VAR'>me</title></xml>"
Actual output: "<xml><title></title><title></title></xml>"
What version of the product are you using? On what operating system?
Using version 1.0.7 in Chrome
Please provide any additional information below.
I fixed this by making a 5 line change to version 1.0.6**. My file is attached.
The for loop at line 196 now is:
for(var arIdx = 0; arIdx < subObj.length; arIdx++) {
if(arrayOfObjects){
var arrObj = {};
arrObj[it] = subObj[arIdx];
result+=parseJSONObject(arrObj);
} else {
...
}}
** Link to version 1.0.6:
http://code.google.com/p/x2js/source/browse/xml2json.js?spec=svn8326889cdfbe9512
26417adbed94952ef9d7a06f&r=ee0824ba76a41fe7be65546e145ccd591f9dc662
Original issue reported on code.google.com by paulmed...@gmail.com on 15 Oct 2012 at 2:55
Original issue reported on code.google.com by
paulmed...@gmail.com
on 15 Oct 2012 at 2:55Attachments:
The text was updated successfully, but these errors were encountered: