Welcome to WebmasterWorld Guest from 54.167.46.29

Forum Moderators: httpwebwitch

Message Too Old, No Replies

XML generation is giving error

     
1:14 pm on Jul 15, 2008 (gmt 0)

New User

5+ Year Member

joined:July 3, 2007
posts: 9
votes: 0


Hello

I am facing a problem with XML. When I execute following URL it gives error while on this page only simple rss feed node are created and echoed at the end of the page. But some how It gives error. More i have tried to remove first 2 lines which are blank but i can not. Please some body help me out.

Thank You.

edited by: httpwebwitch - URL removed

[edited by: httpwebwitch at 2:27 pm (utc) on July 15, 2008]
[edit reason] URL removed [/edit]

2:29 pm on July 15, 2008 (gmt 0)

Moderator This Forum from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


Hi swatej,
Can you describe the error you're getting?
To answer your question we'll need a lot more detail.

and please don't link to broken works in progress, thanks :)

5:07 am on July 16, 2008 (gmt 0)

New User

5+ Year Member

joined:July 3, 2007
posts:9
votes: 0


Hi httpwebwitch,
Thanks for giving quick reply.
It gives following Error:

XML Parsing Error: xml declaration not at start of external entity
[url removed]
Line Number 4, Column 1:

[edited by: httpwebwitch at 5:45 am (utc) on July 16, 2008]
[edit reason] removed url [/edit]

2:18 pm on July 16, 2008 (gmt 0)

Moderator This Forum from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


The xml declaration does need to be at the very beginning of the code - with no whitespace before it.
So you must hunt and destroy those blank lines.

>> i have tried to remove first 2 lines which are blank but i can not

Is this an RSS feed you are creating, or one you're consuming? And what server platform/language are you working with? (PHP, ASP, VB, ColdFusion... ?)

4:59 am on July 17, 2008 (gmt 0)

New User

5+ Year Member

joined:July 3, 2007
posts:9
votes: 0


This is RSS feed we are creating using PHP plateform.
11:45 am on July 17, 2008 (gmt 0)

Moderator This Forum from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


aah. Then truly, somewhere, there are some blank lines. The hunt is on. Often it's only that someone, hidden in some remote included library, left a line break before the "<?php" or after the the "?>" .

Good luck!

12:08 pm on July 17, 2008 (gmt 0)

New User

5+ Year Member

joined:July 3, 2007
posts:9
votes: 0


Thanks for your quick reply. I will try to find out at my end. Thanks once again.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members