Tag Info

Hot answers tagged

7

In XML the ampersand has to be escaped, so change it to: &


6

In most cases, you need to have the manual submit, even when you've utilized AJAX to submit your forms. JavaScript is not always enabled for a variety of reasons. Most text-only browsers usually don't interpret JavaScript and so it's important to have a fallback. Also, although I know it's not applicable for most forms, search engines have very limited ...


6

According to HTML5 Reference, xmlns is relevant for XHTML but not for html5. DOCTYPE is cas insensitive : In HTML, the DOCTYPE is case insensitive, except for the quoted string "about:legacy-compat", which must be written in lower case.


6

You are asking two questions here. Does a sitemap need to be XML? The simple answer is no, it doesn't have to be XML. It can be XML file, a text file or RSS/Atom feed (which is basically XML), HTML Sitemap HTML Sitemaps: These are used on your website to display the layout in layers on your website to any customer that would wish too (don't know why they ...


5

You've found the main advantage of using a text list of URLs -- it's easy to make a text-file like that on your own. However, once you go past a certain number of URLs, making it manually just isn't worth the time, and if you're going to make a Sitemap file with a tool, the simplicity of a text-file doesn't really play a role anymore. By using XML files, ...


5

Neither is really better than the other. It's a matter of preference for the most part. Do you want to reload the entire page, or just reload a certain portion of it. If the form is all you're showing, ajax is probably slower than reloading the page. However, if your form is just a small portion of the page, ajax would probably be faster. You can still ...


5

I believe you are looking for schema.rdfs.org - pertinent links: RDF/XML JSON CSV


5

The HTML5 drafts are partly rather complicated and abstract. But on the basis of somewhat vague statements in them as well as the http://validator.w3.org behavior (which can be expected to reflect the intentions of the authors of HTML5 drafts, the answers seem to be: The xmlns attribute is allowed but not required in XHTML syntax (XHTML serialization), In ...


4

RSS is a tool. It's used by subscribers to quickly/easily see when a site they're interested in is updated/adds new content. If you think your feed subscribers would like to be notified of such updates and might be interested in viewing it (possibly even for the first time), then sure add it to the feed. If you think most of your subscribers wouldn't care ...


3

Whether you "should" is your own decision. But there are different ways to approach it if you do. Some sites just edit the original post directly, and tack something like "[UPDATED]" on to the headline. [example at VentureBeat] This has two potential effects, which cover everyone: If someone's feedreader hadn't already fetched the item, then it will show ...


3

Because of the content-type header that it's spitting out. Inspect it with your favourite tool (Firebug, etc) and see what it's sending.


3

Having just done the same thing (placing the referenced sitemap files in a different sub-folder) I can confirm this works fine with no issues. The XML Sitemap index file doesn't have to be in the root of the site, but it is preferable (for convention) The Sitemaps referenced by the index file don't have to be in the root of the site folder either


3

It's really the same as any form of data store. Do you protect it from malicious data and attack? One thing that comes to mind is how are the XML files stored? Outside of the web root - best Inside the web root but protected through .htaccess - not as good but ok Inside the web root and hidden through obscurity - not good at all The data's integrity and ...


3

The W3 validator is open source (written in Python I believe) so you can download and run it locally. I can't for the life of me find the download link on w3.org though.


3

AFAIK, Google doesn't process XSLT templates. So while the text content of the XML can be indexed by Google, it'll just be in the form of the plain XML document, meaning most of the document semantics won't be understood by Google aside from some shared attributes and elements between XML and XHTML. I don't know if the situation is any different for other ...


3

It has been verified that a PHP file can be used as a sitemap file such as sitemap.php I checked http://sitemaps.org (the website with the specification information for sitemaps) and there is no mention that the file must be saved in the .XML format. I will have to say that yes, it will work, as long as Google does not have a problem with the extension for ...


3

From Google: If your site targets users in many languages and, optionally, countries, you can use Sitemaps to provide Google with rel="alternate" hreflang="x". These annotations help Google serve the correct language or regional URL to searchers. That article will tell you more about how to do that. (Summary of that article just in case it moves or is ...


2

The robots will see what you send from the server. If you send an XML that has a link to a style sheet, the robots will see the XML. If you transform the XML into HTML on the server, the robots will see the HTML.


2

I has been a while since I've done this, but I believe that Google Doc's export to HTML works better than MS Word and I believe that Google Docs will read Word docs, so you might be able to load the doc into Google Docs and export it that way.


2

You can always use another application as an intermediary, like LibreOffice, and use it to save it as an HTML document. LibreOffice (formerly OpenOffice, which is still available if you prefer it) generates much cleaner code comparatively.


2

HTML Tidy, developed by Dave Raggett of W3C, can validate & automatically fix errors. It can work from the command-line


2

Farseeker's suggestion is a good first step in troubleshooting (a text/html content-type would certainly produce this result) - Google Webmaster Tools should display a different error message if the sitemap file contains invalid XML. Given the temporary nature of the issue, have you checked your server logs to determine whether an error page was produced on ...


2

This is pretty good documentation http://support.google.com/webmasters/bin/answer.py?hl=en&answer=80472 More information is available in webmaster tools http://www.google.com/webmasters/videositemaps/


2

New content should go at the top of the feed bumping old content off of the bottom. You shouldn't put all of your articles in your RSS feed as that can make it very large and unweildy. Generally RSS feeds are limited to about ten items although I've seen as much as 50 in a feed. If you publish content often put more items in your feed so users can be sure ...


2

Do you mean DOCTYPE or do you really mean mime type? And, why do you prefer sending html to IE and xhtml to everyone else? Seems like an unnecessary complication. As a side note, why would anyone whose audience is the general public prefer serving XHTML over HTML? I should probably ask that in another thread if I really want an answer...


2

It sounds like you're trying to create a Polyglot Document (and I sound like Clippy!) Essentially, that's an HTML5 document which is also valid XML. Basically, you just need to carry on as normal, writing valid HTML5. You will need to close any self-closing elements (e.g. <br> becomes <br />, same for img, source, hr, etc) and make sure all ...


2

As an advice, if you're current skills are limited, and the project is a little too much, don't take it, there will be tons of other oportunities when you're skills have increased. Having said so, i recommend that you invest time into any one of available php frameworks, some are incredibly easy to work with, and will make your tasks super easy. Building ...


2

After an extensive search...it doesn't seem possible to exclude terms found in your site and search queries from appearing in Google's Custom Search Engine autocomplete. You might however look at providing a front-end to the search form using something like jQuery Autocomplete, and disabling the autocomplete option in Custom Search. Then you can populate ...


1

It has been my experience (and understanding) that YouTube-hosted videos CAN be embedded into Video Sitemaps. However, to get the maximum SEO benefit (higher video listings in the SERP's), you need to host the video and video thumbnail on your own web site. This is more difficult because you need a video player, a good web hosting provider that supports ...



Only top voted, non community-wiki answers of a minimum length are eligible