The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Munged namespaces

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Munged namespaces Posted: Jul 13, 2005 9:17 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Munged namespaces
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Jon Udell talks about the difficulties in dealing with XML namespaces:

My task was simple: parse the feed, use XPath queries to carve out items, and unpack the elements contained within those items.
This proved surprisingly hard to do with my regular XML parser and toolkit, libxml2, which deals strictly with namespaces. I then repeated the exercise using three other toolkits -- Python's minidom module, E4X (ECMAScript for XML) implemented using Rhino, and Mark Logic's XQuery-based Content Interaction Server. Each made the task simpler, though perhaps not laudably so in the case of minidom and E4X, neither of which requires namespace prefixes to resolve to Universal Resource Identifiers. But what's most striking when you point a variety of XML toolkits at documents that use namespaces is how differently each of them approaches the problem.

The root of this (particular) problem is the namespace Apple defined for iTunes, and the way they built their tools to deal with it. What they allowed was case insensitive namespaces, which is kind of a problem for most XML parsers. To deal with this in BottomFeeder, I had to jump through a few hoops in my checking of namespaces - basically, I scan through all the namespaces in a feed, and look at the implemented modules to see if I care. I had to munge the pattern match for the newest module in order to deal with the case insensitivity.

Ultimately, I think this is going to go in the ugliest direction possible - the same bad place that HTML went. With big firms like Apple (and Disney, one of the iTunes users that uses a variant on the iTunes namespace) breaking things, it's going to get worse before it gets better.

Read: Munged namespaces

Topic: Perhaps they want to stay in business Previous Topic   Next Topic Topic: Partial iTunes support

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use