XML Parsing Error
Qaaolchoura
11-01-2004, 22:45
I was running the region datafeed on some large regions attempting to determine the cutoff point between the nation list and <NATIONS>---MANY-- </NATIONS>, and I come to 10000 Islands (http://www.nationstates.net/cgi-bin/regiondata.cgi/region=10000%20Islands)
[quote]
That, and the unusual peach background. It only happens for 10000 Islands that I've seen so far, although I will run queries on several other regions and see if I see it there as well.
Peng, Sal, [violet], or another tech savvy mod/player, do you have any clue, WTF is going on? :?
It's the ampersand symbol (&). Seem to remember somebody highlighting this a while back... I thought it had been fixed, but obviously not.
Example:
ZZZZ (http://www.nationstates.net/cgi-bin/regiondata.cgi/region=ZZZZ)
King Binks
12-01-2004, 00:43
Could someone please help me just a bit, if its not too complicated? I have some HTML experience, as well as 3 other languages. How exactly do you use the information gotten from the XML feed? For instance, my region, bliss (http://www.nationstates.net/cgi-bin/regiondata.cgi/region=bliss). How do I use this information to create a script? If someone can point me in the correct direction even, I can do much research and such on the subject for myself. Thanks.
Could someone please help me just a bit, if its not too complicated? I have some HTML experience, as well as 3 other languages. How exactly do you use the information gotten from the XML feed? For instance, my region, bliss (http://www.nationstates.net/cgi-bin/regiondata.cgi/region=bliss). How do I use this information to create a script? If someone can point me in the correct direction even, I can do much research and such on the subject for myself. Thanks.
This a decent place to start: Developer.com (http://www.developer.com/xml/)
Here's a decent tutorial, too. (http://hotwired.lycos.com/webmonkey/98/41/index1a.html?tw=authoring)
Peng-Pau
12-01-2004, 09:14
I was running the region datafeed on some large regions attempting to determine the cutoff point between the nation list and <NATIONS>---MANY-- </NATIONS>, and I come to 10000 Islands (http://www.nationstates.net/cgi-bin/regiondata.cgi/region=10000%20Islands)
That, and the unusual peach background. It only happens for 10000 Islands that I've seen so far, although I will run queries on several other regions and see if I see it there as well.
Peng, Sal, [violet], or another tech savvy mod/player, do you have any clue, WTF is going on? :?
*coughs at someone with access to the regiondata.cgi script*
Add this in before it prints the data:
[code:1:af6b49c795]$var =~ s/\&/\&ersand\;/g;[/code:1:af6b49c795]
Where $var is whatever gets sent...
Ballotonia
12-01-2004, 15:31
I was running the region datafeed on some large regions attempting to determine the cutoff point between the nation list and <NATIONS>---MANY-- </NATIONS>
Last I heard the cut-off was 300.
EDIT:
Alcatraz (355) : <NATIONS>---MANY---</NATIONS>
North America (248) : <NATIONS>florida:hemenistein .... etc ...
Ballotonia
Qaaolchoura
13-01-2004, 01:53
Last I heard the cut-off was 300.
EDIT:
Alcatraz (355) : <NATIONS>---MANY---</NATIONS>
North America (248) : <NATIONS>florida:hemenistein .... etc ...
Ballotonia
And that begs the obvious question: 250 and 350 are both within that range, and although it is likely safe to assume that it is not 350, could it perchance be 250?