Mike O wrote:
The namespace prefix appears at the beginning of the page title, which appears as the text contents of the /mediawiki/page/title element, separated by a colon from the remaining title part.
That's what I gathered from reading the Wiki docs before I started trying to
parse the XML. But look at this snippet of XML from enwiki-latest-pages-articles.xml.bz2 taken from late August. I don't see any namespace in the <title> elements, any ideas why, or am I looking in the wrong spot?
Those particular page titles are in the main (article) namespace, which has no prefix:
<namespace key="0" />
[snip]
<title>AaA</title>
[snip]
<title>AlgeriA</title>
-- brion vibber (brion @ pobox.com)