I coulden't sleep...

Nov 14, 2007 02:04

due to a uniquely geeky problem:
I had code on the brain.  I went to bed and tried to sleep, but my brain started racing with ideas for some code to help myself learn PHP, and accomplish something that ive been wanting to do for a while.

So I got back up.  And I started coding.  And after 3 hours, im starting to finally get bleary eyed, and I have 1 conclusion.  I want to kill the bureopukes who came up with XML.  I get the concept, I like the idea, I _think_ (thought?) I understand how its supposed to work.

It does wonderful things for organizing data, for keeping it (mostly) human readable.  But for some god forsaken reason, no one can seem to come up with a straight forward API to utilize it.  Or at least no API i have seen

How hard is it to give me an interface that a) lets me load an XML doc from a file, b) lets me browse to the depth I want, c) lets me iterate over the nodes at that depth, and d) from those iterated nodes, lets me browse the sub nodes.  Is that so hard?

I know, I could write my own XML tools, it isnt that hard, but dosent that defeat the purpose of XML, its too bloated for any one person, but if someone else could write some decent APIs for it, then its worth using as I don't have to re-invent the wheel.

coding

Previous post Next post
Up