Mike wrote:
...What I don't see is how to determine what namespace an article correlates to. I see the namespace elements at the top of the file, but how do I match articles to the right namespace?
As Brion already explained, they're sitting there right in each entry's title, using the same colon-separated syntax as they do through the normal wiki UIF.
It's worth noting, though, that the colon syntax isn't unambiguous. If you're looking for namespace prefixes, you have to look for only the ones that are known to exist in the project. You can't just look for colons, because there are plenty of articles with colons in their names, such as [[Boston Red Sox: Managers and Ownership]] and [[Star Trek: The Next Generation]], but obviously "Boston Red Sox" and "Star Trek" aren't namespaces.