Hot answers tagged xml
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.
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 ...
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
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 ...
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 ...
4
I believe you are looking for schema.rdfs.org - pertinent links:
RDF/XML
JSON
CSV
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
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
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
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
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
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
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
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 ...
1
Sadly there is no CMS that will do this for you out of the box and will require a lot of coding using the API's provided by these selected platforms, sadly if your skills are limited in developing then you will need to find plugins or components for the CMS your using or outsource a developer who can code this for you.
You can read more at the following ...
1
You do this this same as with a standard sitemap. Simple create the multiple sitemaps for the different areas and then you can submit them to Google. Even better would be to then collate them into another sitemap file which details the other sitemaps available. This is all well documented by Google here:
...
1
Not to be off-topic, but is this a dynamically-generated site? If so, why are you wanting to have people scrape data from your markup, rather than returning a format that is more suited to service-reading software?
It just sounds to me like the same purpose could be served by serving JSON or actual XML or RSS to clients requesting those feeds, and then you ...
1
JavaScript and the DOM are very quick ways to update any items on a web page. If you understand scripting, it is pretty easy to pick up as it's loosely typed. If there is a unique identifier, or if you have a way of adding one, it's pretty useful. Or you can fetch the table, loop through rows or cells, whichever you prefer, checking each element for evidence ...
1
Normally no user will see your sitemap.xml, it's there for the robots and spiders, you're right. You put it on the root directory of the site.
In theory, a sitemap.xml should be enough, no need of a sitemap.html... but sitemap.html are useful for SEO, and some users like to use them to navigate the site. If you do a sitemap.xml, the .html can be ...
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 ...
1
You can use a search engine like SearchBlox to index and archive the rss feeds. After you install SearchBlox, create a RSS collection and add the urls, then set them up on a hourly schedule to index them. Not only will the rss items get archived but the news link will also get indexed.
1
Editing a raw xml file is never (from my point of view) a good usability practice because this is error prone, even when the user is known to xml (imagine missing quotes, forgotten closing xml elements) and it's quite hard to give the user useful feedback in case validation fails.
I'd use some tree like visualization structure with a bunch of javascript to ...
1
I would start by trying making your site any "w3c norm-compliant".
Use some validation engine (like http://validator.w3.org/check) to ensure your site is easily parsable without errors...
After trying to parse your home page, I see some critical errors like:
Unable to Determine Parse Mode!,
No DOCTYPE found, and unknown root element. Aborting validation.
...
1
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 ...
1
You could extend the header to include the schema stuff:
<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">
and then validate online
If it passes that it must be ...
1
To get data from another website, you can use a RESTful approach by using the same protocols a human user would use in order for two machines to communicate.
The beautiful thing about URLs is that machines can use them too!
Since you've used the PHP tag, I'm assuming PHP is your server-side language of choice. The PHP cURL function will allow your ...
1
You need xmlns="http://www.w3.org since xmlns:og and xmlns:fb are references to the xmlns - namespace. You need these because the og and fb tags are custom tags that are not part of the regular html.
That is why the Validator doesn't like it if you omit it.
Only top voted, non community-wiki answers of a minimum length are eligible
