diff --git a/lib/Cake/Utility/Xml.php b/lib/Cake/Utility/Xml.php index 95bb4659e..f27fc1497 100644 --- a/lib/Cake/Utility/Xml.php +++ b/lib/Cake/Utility/Xml.php @@ -312,7 +312,7 @@ class Xml { $childNS = $value['xmlns:']; unset($value['xmlns:']); } - } elseif (!empty($value) || $value === 0) { + } elseif (!empty($value) || $value === 0 || $value === '0') { $childValue = (string)$value; }