Known Bugs

* I have to deal with dup's, clone's and new's for XML::Smart::DOM::*
  
  require 'xml/smart'
  require 'date'

  xmldoc = XML::Smart.open('crasher.xml')
  xpath = '/eveapi/currentTime/text()'
  text_str = xmldoc.root.find(xpath)[0]
  puts DateTime.parse(text_str)
  # or text_str.dup

  ########################
  <?xml version='1.0' encoding='UTF-8'?>
  <eveapi version="2">
    <currentTime>2008-10-10 02:40:49</currentTime>
  </eveapi>

Todo + Ideas:

* add apply_style to dom (apply xslts) - keep in touch with Ken Wronkiewicz <wh at wirewd dot com> 
  who is interessted in this (I don't like the API's from Gregoire Lejeune but they are usable)
  (DONE)

* Namespaces:
** By default XML::Smart::DOM#namespaces is populated with the namespace available in the whole document
** XML::Smart::DOM#namespaces not changeable
** adding namespaces to nodes update XML::Smart::DOM#namespaces
** XML::Smart::DOM::Element#add has to respect namespaces as prefixes in the string name (#add "ex:name")
** adding namespaces to nodes update XML::Smart::DOM#namespace_shortcuts exits
** XML::Smart::DOM::Element#add translates namespace shortcuts (#add "shortcut:name")

* create detailed documention, not only examples
* create unit test

Unit Tests
* valgrind --partial-loads-ok=yes --undef-value-errors=no ruby xxx.rb
