org.w3c.dom WTFs of the week
I've been working on bringing Android's DOM implementation up to version 3. This process has exposed me to some ugly code. For your entertainment, here are the worst bits: DocumentBuilder.parse() doesn't accept references to unparsed entities. But you can build such a DOM programatically. The API doesn't specify whether…