diff --git a/utils/xmldump.php b/utils/xmldump.php
index d3240be2a..3a449aed5 100644
--- a/utils/xmldump.php
+++ b/utils/xmldump.php
@@ -276,7 +276,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
if($attributes = $document->getAttributes()) {
foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition();
- echo $indent." getID()."\">".$attribute->getValue()."\n";
+ echo $indent." getID()."\">".wrapWithCData($attribute->getValue())."\n";
}
}
@@ -332,7 +332,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
if($attributes = $version->getAttributes()) {
foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition();
- echo $indent." getID()."\">".$attribute->getValue()."\n";
+ echo $indent." getID()."\">".wrapWithCData($attribute->getValue())."\n";
}
}
if($statuslog = $version->getStatusLog()) {
@@ -625,7 +625,7 @@ if($attrdefs) {
echo "\">\n";
echo " ".$attrdef->getName()."\n";
echo " ".$attrdef->getMultipleValues()."\n";
- echo " ".$attrdef->getValueSet()."\n";
+ echo " ".wrapWithCData($attrdef->getValueSet())."\n";
echo " ".$attrdef->getType()."\n";
echo " ".$attrdef->getMinValues()."\n";
echo " ".$attrdef->getMaxValues()."\n";