You are not logged in.

#1 2010-02-04 02:29:35

majiq
Member
Registered: 2009-03-06
Posts: 259

XML Parser issue?

I've been getting XML errors when visiting a certain site, and through the course of events, I'm fairly sure my setup is the problem. While trying to visit this blender video tutorial site, in firefox I get:

 XML Parsing Error: not well-formed
Location: http://www.screencast.com/users/Neal/folders/Flash/media/1eba4927-e9e7-405d-9353-8eda7b0ba067
Line Number 87, Column 44:
         if ( boundsWidth > originalWidth && boundsHeight > originalHeight || 
-------------------------------------------^

and in Chrome I get:

This page contains the following errors:

error on line 87 at column 44: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.

and Epiphany works fine. Also, the site loads perfectly on other machines. Does anyone else on Arch have this problem? Is there an xml parser in the wrong?

Offline

#2 2010-02-04 04:05:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: XML Parser issue?

Is your system fully up to date? I don't see any problems with Firefox or vimprobable2 (webkit).

Offline

#3 2010-02-04 04:12:21

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

What version of firefox do you use. When I use to use ubuntu, I would always have a unstable firefox release and get that, but it works fine in my browser

Last edited by cesura (2010-02-04 04:12:46)

Offline

#4 2010-02-04 04:22:22

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: XML Parser issue?

I get the same error here with Firefox. The source seems to be malformatted.

Even Python says so:

#!/usr/bin/env python

from urllib import urlopen
from xml.dom.minidom import parseString

h = urlopen('http://www.screencast.com/users/Neal/folders/Flash/media/1eba4927-e9e7-405d-9353-8eda7b0ba067')
txt = h.read()
h.close

try:
  parseString(txt)
except:
  print "lolwut?"
else:
  print "looks good"

Which OS and browser are you using on the other machines that render it "correctly"? Invalid XML is invalid... there's nothing OS specific about it. Either the server is using the user agent to alter the content (in which case the admins should be smacked with a NYC phonebook), or the other OS/browser is ignoring malformatted XML.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2010-02-04 04:24:47

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

Xyne wrote:

I get the same error here with Firefox. The source seems to be malformatted.

Even Python says so:

#!/usr/bin/env python

from urllib import urlopen
from xml.dom.minidom import parseString

h = urlopen('http://www.screencast.com/users/Neal/folders/Flash/media/1eba4927-e9e7-405d-9353-8eda7b0ba067')
txt = h.read()
h.close

try:
  parseString(txt)
except:
  print "lolwut?"
else:
  print "looks good"

Which OS and browser are you using on the other machines that render it "correctly"? Invalid XML is invalid... there's nothing OS specific about it. Either the server is using the user agent to alter the content (in which case the admins should be smacked with a NYC phonebook), or the other OS/browser is ignoring malformatted XML.

It's going to be how the browser interprets it. If it works fine with mine, then it's obviously not a problem in the code, rather, a problem with the setup of the browser.

EDIT: Or my browser enjoys incorrect code. xD

Last edited by cesura (2010-02-04 04:26:38)

Offline

#6 2010-02-04 04:27:51

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: XML Parser issue?

I don't see how XML could be invalid in both Firefox and Python by sheer coincidence. XML is very clearly specified and has been for a long time. I doubt that errors would suddenly appear now, and definitely not in completely unrelated parsers.

I want to see if we're getting the same source. Post the output of the following.

#!/bin/bash
wget -O test 'http://www.screencast.com/users/Neal/folders/Flash/media/1eba4927-e9e7-405d-9353-8eda7b0ba067'
md5sum test

Output

fbe90c12f810064303373eab1e5c7098  test

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2010-02-04 04:31:17

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

6b1dbc547eea5acbfe27b7602f99d79c  test

hmm different md5sum

Offline

#8 2010-02-04 04:33:58

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: XML Parser issue?

I fscking knew it. Someone hand me the phone book.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2010-02-04 04:36:49

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

Xyne wrote:

I fscking knew it. Someone hand me the phone book.

haha big_smile

Offline

#10 2010-02-04 04:50:38

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: XML Parser issue?

itsbrad212 wrote:
Xyne wrote:

I fscking knew it. Someone hand me the phone book.

haha big_smile

Haha. Good call, Xyne:

 c5a12b3a8ed20ace2bbd6e4d71f16056  test

Furthermore:

 4334d6b43a6c641cdd770a0145712f16  test

And looking at the second file, when downloaded, it actually properly loads. So what is going on here?

Offline

#11 2010-02-04 04:51:14

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: XML Parser issue?

Bah, the content seems to be dynamic so the md5sum is meaningless:

c55e0d11328fc9753c583a51326680bb test

Here's what I see: http://pastebin.com/m9ecb049

Someone who can see the page can save that and check if their browser renders it.

Last edited by Xyne (2010-02-04 04:53:29)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#12 2010-02-04 04:57:56

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: XML Parser issue?

Yeah, I was noticing that, that it was dynamic. Also, I noticed that the first download actually worked fine, but also its missing css, etc. Maybe the issue is in the css or related/linked javascript files? I'll post a screenshot when possible.

http://i46.tinypic.com/zxw77k.png

Last edited by majiq (2010-02-04 05:00:20)

Offline

#13 2010-02-04 05:01:39

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

majiq wrote:

Yeah, I was noticing that, that it was dynamic. Also, I noticed that the first download actually worked fine, but also its missing css, etc. Maybe the issue is in the css or related/linked javascript files? I'll post a screenshot when possible.

I doubt it. CSS just puts arranges things in an order to display. If it doesn't exist, it ignores it. It could be javascript, because of it being client-side, it might render the output differently in each browser.

BTW, just for fun:

d14aaa42e676a996506459160a0e8225

Last edited by cesura (2010-02-04 05:02:22)

Offline

#14 2010-02-04 05:10:44

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: XML Parser issue?

Xyne wrote:

I fscking knew it. Someone hand me the phone book.

I hope I had nothing to do with this. roll


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#15 2010-02-04 05:36:48

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: XML Parser issue?

Interesting note: If I switch my default user agent to IE6, it works. Other interesting note: The only stuff in the code about IE6 has to do with the css style. This makes me think that it's the way the server reacts to the user agent.

My User Agent according to http://whatsmyuseragent.com/:HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100121 Namoroka/3.6

The User Agent that worked (thanks to the User Agent Switcher): HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

What is the string of someone for whom it properly renders?

Offline

#16 2010-02-04 06:15:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: XML Parser issue?

majiq wrote:

What is the string of someone for whom it properly renders?

Lynx/2.8.7dev.9 libwww-FM/2.14 SSL-MM/1.4.1


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#17 2010-02-04 12:42:34

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: XML Parser issue?

fsckd wrote:
majiq wrote:

What is the string of someone for whom it properly renders?

Lynx/2.8.7dev.9 libwww-FM/2.14 SSL-MM/1.4.1

....lynx? Really? Lynx? I should have seen that coming.

For sake of comparison, could someone who's using the latest version of firefox and is able to load the site correctly please post their useragent?

Offline

#18 2010-02-15 04:38:51

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: XML Parser issue?

majiq wrote:
fsckd wrote:
majiq wrote:

What is the string of someone for whom it properly renders?

Lynx/2.8.7dev.9 libwww-FM/2.14 SSL-MM/1.4.1

....lynx? Really? Lynx? I should have seen that coming.

For sake of comparison, could someone who's using the latest version of firefox and is able to load the site correctly please post their useragent?

There you go:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100124 Arch Linux Firefox/3.6 (Swiftfox)

Offline

#19 2010-02-23 22:20:27

svacko
Member
Registered: 2008-07-08
Posts: 9

Re: XML Parser issue?

I had the similar problem with other sites. I've solved it by changing general.useragent.extra.firefox value from Namoroka/3.6 to Firefox/3.5 and everything works now as before smile

Last edited by svacko (2010-02-23 22:20:36)

Offline

#20 2010-03-04 15:19:14

zzxop
Member
Registered: 2010-03-04
Posts: 2

Re: XML Parser issue?

svacko wrote:

I had the similar problem with other sites. I've solved it by changing general.useragent.extra.firefox value from Namoroka/3.6 to Firefox/3.5 and everything works now as before smile

thanks for your solution.

Offline

Board footer

Powered by FluxBB