Modified: trunk/Sungrazr/Xml/Beautifier.php (95 => 96)
--- trunk/Sungrazr/Xml/Beautifier.php 2007-12-18 06:35:39 UTC (rev 95)
+++ trunk/Sungrazr/Xml/Beautifier.php 2007-12-18 06:55:36 UTC (rev 96)
@@ -188,6 +188,11 @@
$this->_reader->moveToElement();
}
+
+ // Close empty elements
+ if ($this->_reader->isEmptyElement) {
+ $this->_writer->endElement();
+ }
break;
case XMLReader::END_ELEMENT:
@@ -213,5 +218,4 @@
// Done!
return $this->_writer->flush();
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file