h0nza / x2js

Automatically exported from code.google.com/p/x2js
0 stars 0 forks source link

Decode problem in Firefox v30 and IE10 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I use x2js.xml2json( javascript text string of attached file )

What is the expected output? What do you see instead?
Works as expected in Chrome, fails in Firefox v30 and IE10

I get object.observations.links (in Chrome)
I get object with no attributes (in IE and Firefox)

What version of the product are you using? On what operating system and
browser version?
v1.1.5

This is the only thing I've found this piece of software not able to decode 
which says a lot! Great work!

Original issue reported on code.google.com by eflowbe...@gmail.com on 19 Jun 2014 at 2:25

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your report.
Investigating.

Original comment by abdulla....@gmail.com on 19 Jun 2014 at 7:40

GoogleCodeExporter commented 9 years ago
Hmmm.. I've just downloaded your file and see the incorrect ending in the XML 
content:

...
<gst:link rel="http://moped.gst.com/rels/instrumentation" 
type="application/vnd.com.gst.moped.v1+xml" href="https://moped.gst.com/metadata

Could you send me a valid XML file, please?

Original comment by abdulla....@gmail.com on 19 Jun 2014 at 7:45

GoogleCodeExporter commented 9 years ago
It must have truncated or been updating when I attached it. Try this one.

Original comment by eflowbe...@gmail.com on 19 Jun 2014 at 7:48

Attachments:

GoogleCodeExporter commented 9 years ago
Ok. Now it's valid, thanks.
But I put it into https://x2js.googlecode.com/hg/demo.html and see no 
difference in FF for now. 
I'll check it more thoroughly tomorrow.

Original comment by abdulla....@gmail.com on 19 Jun 2014 at 7:58

GoogleCodeExporter commented 9 years ago
I think you can close this. It apparently is on my end. I must be doing 
something wrong with the file perhaps response headers from an ajax call or 
something. I tried a very simple version of my code and it worked.

Original comment by eflowbe...@gmail.com on 19 Jun 2014 at 8:35

GoogleCodeExporter commented 9 years ago
Well, ok :)
Tell me if you need any additional assistance.

Original comment by abdulla....@gmail.com on 19 Jun 2014 at 9:49

GoogleCodeExporter commented 9 years ago
Just giving you an update.  It turns out the xml parser that I was using from 
the Qooxdoo library for the Xhr request was failing to parse the file in 
Firefox and IE. 

Original comment by eflowbe...@gmail.com on 23 Jun 2014 at 1:31

GoogleCodeExporter commented 9 years ago
Hm, is it well-formed XML? Looks like there are some problems with structure.

Original comment by abdulla....@gmail.com on 23 Jun 2014 at 2:42