3 ms·
Neat stuff. I'm wrapping up writing a custom rails app that will talk to the iPhone, and because I don't have to support other platforms I've designed my XML to
by paulhart 18y ago
Neat stuff. I'm wrapping up writing a custom rails app that will talk to the iPhone, and because I don't have to support other platforms I've designed my XML to be optimized for parsing on the client side.
The simplest optimization is to have NOTHING in text between tags. If you want to associate values with a specific element, then add a set of attributes to the element instead. Much simpler to do a bunch of if/else statements inside parser:didStartElement than to keep track of text, last element name, and all sorts of potential depth issues.