Visit The XML Pro News Directory
CSS
Templates, Tag Reference
News
Articles, Books
XML Articles
Blogs, Recent News
XML Consultants
Consulting Networks, Training
XML Editors
XML Text Editors, XML WYSIWYG Editors
XML Encoding
Tags, Rules
XML Layouts
Code Layout, Page Layout
XML Programming
Methods, Applications

Submit your site for FREE

Archive for the ‘XML Code’ Category

WordPress has Added XML Sitemaps

Tuesday, June 17th, 2008

WordPress.com has added XML sitemaps so I thought I would take a glance at their implementation.

My immediate though was to take a look at Lorelle’s sitemap.xml

• Homepage daily priority
• Every other page updated on a weekly basis?

That seems like a good way to tell the spiders to index your site less often than they currently do.

With Lorelle you would certainly want spiders checking the home page hourly as she is sometimes the source of breaking news.

Then I looked at the sitemap with a little more detail, and in particular the entry for her most recent post, the Cyclical Nature of Blog Stats - a post worthy of a link anyway so this is a 2-in-1.

This entry was written by Lorelle VanFossen and posted on June 16, 2008 at 4:57 am

Ah but I know Lorelle writes posts sometimes in batches and schedules them for publishing. Lets look at the XML:

Wrong again - today is the 17th, Lorelle published a post on 16th June, which updated the home page, but it is not reflected in the sitemap.

Sometimes you might be better off with no sitemap at all…

5/10 for finally fulfilling a user request
1/10 for implementation (so far)

*Originally published at AndyBeard.eu

Comments

XmlException: Data At The Root Level Is Invalid

Friday, April 18th, 2008

A few days ago I needed to write some functionality to fetch an XML document from a URL and load it into an XmlDocument. As always I use the WebClient to retrieve simple documents over HTTP and it looked like this:

using (WebClient client = new WebClient())

{

string xml = client.DownloadString(“http://example.com/doc.xml”);

XmlDocument doc = new XmlDocument();

doc.LoadXml(xml);

}

I ran the function and got this very informative XmlException message: Data at the root level is invalid. Line 1, position 1. I’ve seen this error before so I knew immediately what the problem was. The XML document that was retrieved from the web had three strange characters in the very beginning of the document. It looks like this:

<?xml version=”1.0″ encoding=”utf-8″?>

(more…)

Caching CFCONTENT

Tuesday, November 20th, 2007

A few days ago I blogged about a code review I was doing for another client. Yesterday I found another interesting bug in their code. (It is always easier to find bugs in other people’s code.) (more…)

Ping Using XML-RPC In ASP.NET

Tuesday, November 20th, 2007

Many blogs have the ability to ping different ping-services, such as Ping-o-Matic, Feedburner and Technorati, whenever some content is created or updated. (more…)

Spry, Apollo, & Remote XML Sources

Tuesday, November 20th, 2007

So this is probably a ‘Duh’ type post, but I was curious how Apollo and it’s “open” web browser would handle remote AJAX requests. (more…)