XML button on News page error
XML button on News page error
Author
Discussion

FourWheelDrift

Original Poster:

91,656 posts

305 months

Thursday 16th December 2004
quotequote all
On the Vectra/Lexus news item page there is a orange button which when pressed (sorry I'm a habitual button presser) gave this error on a beige coloured screen with an orange line border.

XML Parsing Error: xml processing instruction not at start of external entity
Location: www.pistonheads.com/xml/news091.asp?c=26
Line Number 3, Column 1:<?xml version="1.0" encoding="ISO-8859-1"?>
^

Tripps

5,814 posts

293 months

Thursday 16th December 2004
quotequote all
FourWheelDrift said:
On the Vectra/Lexus news item page there is a orange XML button which when pressed (sorry I'm a habitual button presser) gave this error on a beige coloured screen with an orange line border.

XML Parsing Error: xml processing instruction not at start of external entity
Location: www.pistonheads.com/xml/news091.asp?c=26
Line Number 3, Column 1:<?xml version="1.0" encoding="ISO-8859-1"?>
^
Works fine in IE6, are you using Firefox?

Finally and interesting use for RSS with PH on-board

FourWheelDrift

Original Poster:

91,656 posts

305 months

Thursday 16th December 2004
quotequote all
Tripps said:

Works fine in IE6, are you using Firefox?

Finally and interesting use for RSS with PH on-board


Button there in IE6 too, give this mess (bit's of code will probably be missing here) when I press it (sorry can't help myself)

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <rss version="0.91">
- <channel>
<title>PistonHeads (Motoring News)</title>
<link>www.pistonheads.com/news/</link>
<description>Motoring News</description>
<language>en-gb</language>
<copyright>Copyright 2004, PistonHeads.com</copyright>
- <image>
<title>PistonHeads (Motoring News)</title>
<url>www.pistonheads.com/images/fast-car-news-chimp2.jpg</url>
<link>www.pistonheads.com/news/</link>
<description>Motoring News</description>
</image>
- <item>
<title>Autojumble show kicks off new year</title>
<link>www.pistonheads.com/news/default.asp?storyId=9634</link>
<description>Empty your garage at Birmingham's NEC</description>
</item>
- <item>
<title>New software to teach motorway driving</title>
<link>www.pistonheads.com/news/default.asp?storyId=9632</link>
<description>Should it be standard issue for all motorists?</description>
</item>
- <item>
<title>Road works to be removed over Christmas</title>
<link>www.pistonheads.com/news/default.asp?storyId=9631</link>
<description>Long distance journeys might be eased this year</description>
</item>
- <item>
<title>Beemers are best at car security</title>
<link>www.pistonheads.com/news/default.asp?storyId=9630</link>
<description>Tests show 5 Series and X3 are hardest to break into</description>
</item>
- <item>
<title>Lexus shoots self in foot</title>
<link>www.pistonheads.com/news/default.asp?storyId=9629</link>
<description>Could Vectras really be mistaken for Lexi?</description>
</item>
- <item>
<title>Government adds £140m to car tax haul</title>
<link>www.pistonheads.com/news/default.asp?storyId=9627</link>
<description>Company-owned diesels to lose three per cent tax advantage</description>
</item>
- <item>
<title>Deck the tree with sprigs of holly</title>
<link>www.pistonheads.com/news/default.asp?storyId=9626</link>
<description>But watch out for those warning labels first...</description>
</item>
- <item>
<title>Vauxhall uprates its Monaro VXR</title>
<link>www.pistonheads.com/news/default.asp?storyId=9625</link>
<description>New 6.0-litre engine pushes power to 400 bhp</description>
</item>
- <item>
<title>BMW M6 details emerge</title>
<link>www.pistonheads.com/news/default.asp?storyId=9624</link>
<description>GT cruiser coupé to house M5's 507 bhp V10</description>
</item>
- <item>
<title>On the Limit - Reviewed</title>
<link>www.pistonheads.com/news/default.asp?storyId=9623</link>
<description>Ted puts his feet up and watches TV for us</description>
</item>
- <item>
<title>Win copies of two fab racing games</title>
<link>www.pistonheads.com/news/default.asp?storyId=9622</link>
<description>Just one simple question to answer!</description>
</item>
- <item>
<title>Car thief asks cop for help</title>
<link>www.pistonheads.com/news/default.asp?storyId=9621</link>
<description>"Start my stolen car for me", asks tea-leaf.</description>
</item>
- <item>
<title>Silverstone wins five year reprieve</title>
<link>www.pistonheads.com/news/default.asp?storyId=9620</link>
<description>British GP saved for £60m cost plus FOS 2005 clash</description>
</item>
- <item>
<title>Times runs RoadPilot competition</title>
<link>www.pistonheads.com/news/default.asp?storyId=9619</link>
<description>Guess Gatso's daddy and win a camera warning device</description>
</item>
- <item>
<title>Launch of prototype Spyker C12 Spyder</title>
<link>www.pistonheads.com/news/default.asp?storyId=9618</link>
<description>Six-litre supercar offers 500 bhp and 200mph top speed</description>
</item>
</channel>
</rss>

Tripps

5,814 posts

293 months

Thursday 16th December 2004
quotequote all
FourWheelDrift said:

Tripps said:

Works fine in IE6, are you using Firefox?

Finally and interesting use for RSS with PH on-board



Button there in IE6 too, give this mess (bit's of code will probably be missing here) when I press it (sorry can't help myself)

...big scary chunk of XML removed...
That's what it supposed to do

That encoded format can be used by an RSS reader to poll for new news and colate it on a periodic basis, quite handy tools when setup right too.

FourWheelDrift

Original Poster:

91,656 posts

305 months

Thursday 16th December 2004
quotequote all
But shouldn't the button be invisible?

PetrolTed

34,461 posts

324 months

Thursday 16th December 2004
quotequote all
I'm just fixing it up now. It's correct that it should display XML output.