XML Parsing Error

Hi there, I have the following code:

headings.php

function saveTree()
{
	var xmlData = tree.serializeTree();
	$.ajax({
           url: "/ajax/process_headings.php"
           , type: "POST"
           , contentType: "text/xml"
           , processData: false
           , data: xmlData
           , success: function(data){
                 alert(data);
           }
        }); 
		
}

process_headings.php

[code]<?

$xmlData = $_POST['xmlData'];
echo $xmlData;

?>[/code]

When I view the post information using firefox’s firebug, I get the following message:

[code]XML Parsing Error: not well-formed Location: moz-nullprincipal:{e042c27f-88cb-4605-b717-ce35c7dc6e7c} Line Number 56, Column 7:

hild=“0” im0=“comp.gif” im1=“comp.gif” im2=“comp.gif”/>
------^[/code]

Anyone have any idea why this is happening? Seems that there’s a syntax error in the xml but I’m using the xml generated by dhtmlxtree. Maybe I have to escape something?

You can try to use

tree.setSerializationLevel(false,false,true,true);

Which will add extra escaping to the XML serialization.

If issue still occurs for you - provide a sample of problematic XML.