 -    }
    } 
  ?>
-Index: skeleton/xml/Comment.class.php
-===================================================================
---- skeleton/xml/Comment.class.php	(revision 0)
-+++ skeleton/xml/Comment.class.php	(revision 0)
-@@ -0,0 +1,79 @@
-+<?php
-+/* This class is part of the XP framework
-+ *
-+ * $Id$
-+ *
-+ */
-+
-+  uses(
-+    'xml.Element',
-+    'xml.XMLFormatException'
-+  );
-+
-+  /**
-+   * Represents a comment
-+   *
-+   */
-+  class Comment extends Object implements Element {
-+    protected $content = NULL;
-+
-+    /**
-+     * Constructor
-+     *
-+     * <code>
-+     *   $n= new Comment('Hello World');
-+     * </code>
-+     *
-+     * @param   string content default NULL
-+     * @throws  xml.XMLFormatException
-+     */
-+    public function __construct($content= NULL) {
-+      $this->setContent($content);
-+    }
-+
-+    /**
-+     * Set content
-+     *
-+     * @param   string content
-+     * @throws  xml.XMLFormatException in case content contains illegal characters
-+     */
-+    public function setContent($content) {
-+
-+      // Scan the given string for illegal characters.
-+      if (is_string($content)) {  
-+        if (strlen($content) > ($p= strcspn($content, XML_ILLEGAL_CHARS))) {
-+          throw new XMLFormatException(
-+            'Content contains illegal character at position '.$p. ' / chr('.ord($content{$p}).')'
-+          );
-+        }
-+      }
-+      
-+      $this->content= $content;
-+    }
-+    
-+    /**
-+     * Get content (all CDATA)
-+     *
-+     * @return  string content
-+     */
-+    public function getContent() {
-+      return $this->content;
-+    }
-+    
-+    /**
-+     * Retrieve XML representation
-+     *
-+     * @param   int indent default INDENT_WRAPPED
-+     * @param   string encoding default 'iso-8859-1'
-+     * @param   string inset default ''
-+     * @return  string XML
-+     */
-+    public function getSource($indent= INDENT_WRAPPED, $encoding= 'iso-8859-1', $inset= '') {
-+      $conv= 'iso-8859-1' != $encoding;
-+      return '<!--'.($conv
-+        ? iconv('iso-8859-1', $encoding, htmlspecialchars($this->content))
-+        : htmlspecialchars($this->content)
-+      ).'-->';
-+    }
-+  }
-+?>
-
-Property changes on: skeleton/xml/Comment.class.php
-___________________________________________________________________
-Added: svn:keywords
-   + Id
-
 Index: skeleton/xml/parser/TreeParser.class.php
 ===================================================================
 --- skeleton/xml/parser/TreeParser.class.php	(revision 0)

+      } else if (is_float($content)) {
+        $this->content= ($content - floor($content) == 0)
+          ? number_format($content, 0, '', '')
+          : $this->content
+        ;
+      } else {
+        $this->content= $content;

         $dom->getElementById('home')
       );
     }
