BuzzerBeater Forums

BB Global (English) > BuzzerBeaterStats

BuzzerBeaterStats

Set priority
Show messages by
This Post:
00
49968.312 in reply to 49968.311
Date: 4/23/2009 8:18:06 AM
Overall Posts Rated:
2121
The XMLReader function is unable to parse your team name because of the & symbol

I don't think this is really something I can fix. I have tried but I don't seem to be able to fix this problem.

My option advice is, if you really want to use BB-Stats then wait for me to fix it or change your team name.

I am not sure how your team's shortName got to be W&C because if you try and set that in Your Profile it says it should only be numbers and letters...


Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
From: Avirto

This Post:
00
49968.313 in reply to 49968.312
Date: 4/23/2009 8:28:33 AM
Overall Posts Rated:
11
The problem with "&" is in sending the request to BB about the players?

From: LA-Niko

This Post:
00
49968.314 in reply to 49968.313
Date: 4/23/2009 8:32:42 AM
Overall Posts Rated:
2121
The problem is that the information (XML) that I am getting from BuzzerBeater is not compatible with my reader, when there are strange characters like & and  

The login just won't work... I don't really have time or money to fix this problem at the moment.

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
From: Avirto

This Post:
00
49968.315 in reply to 49968.314
Date: 4/23/2009 8:36:42 AM
Overall Posts Rated:
11
OK, I just asked the question for my information.
Cheers

This Post:
00
49968.316 in reply to 49968.314
Date: 4/23/2009 5:48:42 PM
Overall Posts Rated:
3737
The problem is that the information (XML) that I am getting from BuzzerBeater is not compatible with my reader, when there are strange characters like & and  

The login just won't work... I don't really have time or money to fix this problem at the moment.


Just for the record, there are some problems out there with the info that comes from the BBAPI, but this isn't one of them. The XML is valid. (I know you didn't suggest otherwise.)

$ perl -MKGC::BB -e 'my $bb = KGC::BB->new; $bb->debug(1);
my $p = $bb->teaminfo( {params => { teamid => 23212 }});'
Sending [http://www.buzzerbeater.com/BBAPI/teaminfo.aspx?teamid=23212]
<?xml version='1.0' encoding='utf-8'?>
<bbapi version='1'>
<team id='23212' retrieved='2009-04-23T21:44:08Z'>
<teamName>W&amp;C Bball Club</teamName>
<shortName>W&amp;C</shortName>

<owner >squeakrico7</owner>

<league id='14' level='3'>III.9</league>
<country id='1'>USA</country>
</team>
</bbapi>


Last edited by Mod-oeuftete at 4/23/2009 5:54:39 PM

This Post:
00
49968.317 in reply to 49968.316
Date: 4/24/2009 2:43:45 PM
Overall Posts Rated:
4242
No worries on fixing it. I would love to use bb-stats at some point but I'm pretty busy at the moment anyway. If you do managed to get it fixed, let me know.

Appreciate it. Completely understand the time/money constrictions.

Message deleted
From: LA-Niko
This Post:
00
49968.319 in reply to 49968.1
Date: 4/27/2009 3:38:58 AM
Overall Posts Rated:
2121
BB-Stats Currently Down.

It is looking like I will have to re-think the country page

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
Message deleted
From: LA-Niko
This Post:
00
49968.321 in reply to 49968.1
Date: 4/29/2009 2:46:59 AM
Overall Posts Rated:
2121
BB-Stats Update

The site is back up and the speed of the country page improved. The totals have been removed for each league as they took too much to calculate.

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
This Post:
00
49968.322 in reply to 49968.316
Date: 4/30/2009 12:51:38 AM
Overall Posts Rated:
2121
I am trying to fix this problem with the BBAPI XML.

I have searched and searched and haven't found a solution.

I cant see how I can add entity declarations on the fly with XMLReader...

The stuff I have read suggests that for RelaxNG Schema code such as <amp/> should be used instead of &amp; because it does not allow for manipulating the entity structure.


Any help with this would be greatly appreciated. But one very important thing is that I am not going to change my parser.

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
Advertisement