dhtmlAjax - loader.doSerialization()

I send an ajax request and I return my xml string. This works properly. But when I try to use the following method loader.doSerialization() I get an ‘xml’ is null error.



Does the return XML have to contain certain nodes? Or can the node structure be whatever I want it to be?



I was trying to return the following as a test.



header(“Content-type: application/xhtml+xml”);

$xml = “<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n”;

$xml .= “success”;

echo $xml;

Does the return XML have to contain certain nodes? Or can the node structure be whatever I want it to be?
It returns data as it is in XML, and can be used to serialize specific part of XML only.
In common case you can get
loader.xmlDoc.responseText
to get full text of response.

Please check attached sample.

823749823.ZIP (6.39 KB)