-
-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nokogiri parse xml produces different output on Windows #866
Comments
Hi! This is most likely because of differing versions of libxml2, and not because of Nokogiri. Nokogiri's windows gems package libxml 2.7.7 (as of v1.5.7), and whatever version you're running on your Linux machine is different from that. I'd be interested in knowing if this is the case, but in the meantime I'm closing this ticket. |
How do I know what version of libxml2 I have installed on my Linux? |
I think that I have 2.8.0:
|
Specifically, could you show the output from |
On Ubuntu 12.10
After
On Windows 7 x64
After
|
Is the problem still reproducible when both platforms are running Nokogiri 1.5.8 (or now, 1.5.9)? |
Yup verified to still be reproducible running Nokogiri 1.5.9 |
I have found that Nokogiri seems to produce different output for the same test code when run on Windows compared to running on Linux. On Linux Nokogiri includes the original namespace prefix from the message, but on Windows this is stripped off.
My guess is that the Windows output is correct since the snippet of XML which is being loaded into Nokogiri does not have the namespaces defined and therefore
b:Geobounds
is meaningless.see https://gist.github.com/jamlen/5195661
Windows output:
Linux output:
The text was updated successfully, but these errors were encountered: