<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ class FasterBuilder::XmlMarkup &lt; BlankSlate
   def initialize(options = {})
     # TODO: add indentation support, if possible
     @options = options
-    @nodes   = [nil]
+    @nodes   = []
     @current_node = nil
   end
   
@@ -34,8 +34,6 @@ class FasterBuilder::XmlMarkup &lt; BlankSlate
     encoding = attrs[:encoding] || &quot;UTF-8&quot;
     @doc = XML::Document.new(version)
     @doc.encoding = encoding
-    @nodes[0] = @doc
-    @instructed = true
   end
   
   def cdata!(data)
@@ -92,11 +90,7 @@ class FasterBuilder::XmlMarkup &lt; BlankSlate
   end
   
   def target!
-    if @instructed
-      return @nodes.map { |n| n.to_s }.join(&quot;&quot;)
-    else
-      return @nodes[1..-1].map { |n| n.to_s }.join(&quot;&quot;)
-    end
+    return (@doc.nil? ? @nodes : [@doc] + @nodes).map { |n| n.to_s }.join(&quot;&quot;)
   end
   
   def text!(text)</diff>
      <filename>lib/faster_builder/xml_markup.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ac3f6c670a1f4605d90017b7018f0910cd54b6cc</id>
    </parent>
  </parents>
  <author>
    <name>Coda Hale</name>
    <email>coda.hale@gmail.com</email>
  </author>
  <url>http://github.com/codahale/faster-builder/commit/565bd693791854dd020c4b51776016ae15e8b5cd</url>
  <id>565bd693791854dd020c4b51776016ae15e8b5cd</id>
  <committed-date>2008-08-04T17:14:13-07:00</committed-date>
  <authored-date>2008-08-04T17:14:13-07:00</authored-date>
  <message>Quick refactor, courtesy of Jared Kuolt.</message>
  <tree>65fa081b165da518a5a5247a9fdc0efd9feb584b</tree>
  <committer>
    <name>Coda Hale</name>
    <email>coda.hale@gmail.com</email>
  </committer>
</commit>
