Inserting XML into HTML

  • rocketman
  • Born
  • Born
  • No Avatar
  • Joined: Nov 14, 2008
  • Posts: 2
  • Status: Offline

Post November 14th, 2008, 3:40 am

I would like to insert an sitemap(.xml) genarated by a third party into my current website. I do not want this to be a page. All I want is for spiders to see it and read it. How do I insert this code into HTML.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 14th, 2008, 3:40 am

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6128
  • Loc: Seattle, WA
  • Status: Offline

Post November 14th, 2008, 10:59 am

You don't place XML sitemaps into HTML. Upload the sitemap.xml file to the root of your site and submit it to search engines. You can do this for Google using Google Webmaster Tools. I'd assume other search engines have similar methods but you'll have to look those up yourself as I haven't used them before.
The Beer Monocle. Classy.
  • bin
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Sep 03, 2008
  • Posts: 41
  • Status: Offline

Post November 19th, 2008, 4:35 am

I agree with spork. Just upload the XML sitemap on your website and you can view that page at http://www.yoursite.com/sitemap.xml . Submit this XML sitemap to Google as spork said. You can also submit to Yahoo Site Explorer and MSN Site Center.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post November 19th, 2008, 8:13 am

they'll find it even if you don't submit it.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post November 19th, 2008, 12:13 pm

Do search engines look for "sitemap.xml" like they do "robots.txt" now ?

I haven't generated a sitemap in months.
Strong with this one, the sudo is.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post November 19th, 2008, 1:05 pm

Well, actually you do have to give them a little help. But it's as simple as adding it to your robots.txt file

http://blog.ask.com/2007/04/sitemaps_autodi.html
Quote:
April 11, 2007
Sitemaps Autodiscovery

Today, Ask.com, Google, Microsoft Live Search and Yahoo! together are announcing support of “autodiscovery” of Sitemaps. The new open-format autodiscovery allows webmasters to specify the location of their Sitemaps within their robots.txt file, eliminating the need to submit sitemaps to each search engine separately.


http://blog.hummerbie.com/sitemapxml-an ... robotstxt/
Quote:
It is going to be simple addition to your robots.txt file like:

SITEMAP: http://www.the URL of your sitemap here.xml

You need to put in the full URL, like for this site is is going to be

SITEMAP: http://blog.design-cars.com/sitemap.xml


I knew I had read about that awhile back but I forgot about the robots.txt entry.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post November 19th, 2008, 2:13 pm

That does ring a bell now that you mention it.

Adding it to robots.txt sure beats the hell out of submitting it manually. It seems like all these things I see people telling me to submit to search engines are easier picked up by leaving little hints somewhere else instead of bugging the search engines.
Strong with this one, the sudo is.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6128
  • Loc: Seattle, WA
  • Status: Offline

Post November 19th, 2008, 4:33 pm

Excellent. Noted.
The Beer Monocle. Classy.
  • StarBucks
  • Student
  • Student
  • No Avatar
  • Joined: Jul 29, 2008
  • Posts: 85
  • Status: Offline

Post November 19th, 2008, 4:42 pm

It is more on adding the url of your sitemap where your xml is placed
  • kikwete
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 26, 2008
  • Posts: 17
  • Status: Offline

Post January 3rd, 2009, 10:06 am

Try his code and u got clear....
Code: [ Select ]
<font size="2" color="#0000FF"><?xml
version="1.0"?>
<br><?xml-stylesheet type="text/xsl" href="XSL004.xsl"?>
</font>
<p><font size="2" color="#0000FF"><top <b>...</b>
<br> <theData>
<br>     
<title><b>Java</b></title>
<br>     
<author><b>R.Baldwin</b></author>
<br>     
<price><b>$9.95</b></price>
<br> </theData></font>
  1. <font size="2" color="#0000FF"><?xml
  2. version="1.0"?>
  3. <br><?xml-stylesheet type="text/xsl" href="XSL004.xsl"?>
  4. </font>
  5. <p><font size="2" color="#0000FF"><top <b>...</b>
  6. <br> <theData>
  7. <br>     
  8. <title><b>Java</b></title>
  9. <br>     
  10. <author><b>R.Baldwin</b></author>
  11. <br>     
  12. <price><b>$9.95</b></price>
  13. <br> </theData></font>
  • openwave
  • Born
  • Born
  • No Avatar
  • Joined: Jan 05, 2009
  • Posts: 1
  • Status: Offline

Post January 5th, 2009, 8:01 am

you can upload the XML sitemap on your website and you can view that page at http://www.yoursite.com/sitemap.xml . Submit your XML sitemap to Google as spork. You can also submit to Yahoo Site Explorer.

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 15 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.