Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Easy Date   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 08-25-2007, 11:10 PM   #1 (permalink)
Contributing Member
 
Luckyman's Avatar
 
Join Date: 02-11-07
Location: http://www.dairyforall.com
Posts: 850
iTrader: 0 / 0%
Luckyman is a jewel in the roughLuckyman is a jewel in the roughLuckyman is a jewel in the roughLuckyman is a jewel in the roughLuckyman is a jewel in the roughLuckyman is a jewel in the rough
Cool Problem in xml code

Hai everybody!
I have a problem with the xml code. I use sitemap.xml for my site. But when the url was opened in the browser, it says

XML Parsing Error: xml declaration not at start of external entity
Line Number 2, Column 1:
<?xml version="1.0" encoding="UTF-8"?>
^

What shall I do to rectify the defect? Please advice me
Luckyman is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 08-26-2007, 07:38 AM   #2 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 159
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is liked by somebodyCapo64 is liked by somebodyCapo64 is liked by somebody
I've never tried XML before, but the error makes it look like that should be on Line 1 instead of Line 2.

Make sure that declaration is before any other whitespace or code.
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-26-2007, 08:48 AM   #3 (permalink)
Member
 
cwboaze's Avatar
 
Join Date: 08-23-07
Location: Virginia, United States
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

cwboaze is liked by many
Thumbs down

here is the layout example of most of my sitemap xml feeds,

Code:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://www.yoursite.com/index.html</loc> <priority>0.5</priority> <changefreq>daily</changefreq> </url> </urlset>
__________________
Thanks,
CBTheOne :)
cwboaze is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google's China Problem (and China's Google Problem) - NYTimes Sunday Mag (4/23/06) Julie Google Forum 3 09-18-2007 01:00 AM
Wordpress code problem ...please help! FREEativeMedia Coding Forum 3 03-07-2007 08:14 AM
Google Code Search - Code Search Engine from the Big G Avinash Coding Forum 2 10-05-2006 10:10 PM
Small problem with what seems to be simple code in IE kila_bite Coding Forum 0 03-29-2006 01:10 AM
Code Problem. Fruit & Veg Coding Forum 14 03-02-2004 04:30 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:42 AM.
© Copyright 2008 V7 Inc