       * @param   io.File file
       * @param   string c default __CLASS__ class name
       * @return  xml.Tree
-@@ -165,65 +165,49 @@
+@@ -165,70 +165,73 @@
      /**
       * Callback function for XMLParser
       *

      * @param   resource parser
      * @param   string data
      * @see     xp://xml.parser.XMLParser
Index: skeleton/xml/parser/TreeParser.class.php
===================================================================
--- skeleton/xml/parser/TreeParser.class.php	(revision 0)

      */
     public function onCData($parser, $cdata) {
-      $this->_cdata.= $cdata;
+    
+      // Ignore tokens consisting entirely of whitespace
+      if (strlen($cdata) !== strspn($cdata, " \r\n\t")) {
+        $this->stack[0]->addChild(new Text($cdata));
+      }
     }
 
     /**
