Last modified: 2005-08-16 23:48:27 UTC
Since the dumps switched to XML format, it has become difficult to get the namespace of a given article, because it now needs to be guessed from the article name and requires a dozen UTF-8 string comparisons. Please provide the namespace through a <namespace> entity, if possible.
The namespace is provided in the <namespaces> element which is a subelement of the <siteinfo> element, however having it as a number inside each <page> would be nice.
See also bug 2674.
(In reply to comment #1) > The namespace is provided in the <namespaces> element which is a subelement of > the <siteinfo> element, however having it as a number inside each <page> would > be nice. But please don't store the namespaces as both prefix and number. That would only increase the dump sizes. Besides, one doesn't need 'a dozen UTF-8 string comparisons' to get the numbers. In Perl I use a hash variable: $nsnr{$nsstring}
*** This bug has been marked as a duplicate of 2674 ***