Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Aug 31, 2008 18:39
open dhtmlx forum
empty XML causes error

If we have an empty XML passed we get errors.

Shouldn't it just not display if no data/nodes are in the XML?

For instance we pass:
<tree id="0"></tree> to the tree and it shows...

Error type: LoadXML
Description: Incorrect XML

Then
Error type:Datastructure
Description :XML reffers to not existing parent
Answer posted by Support on Sep 01, 2008 01:52
In common case such response must be processed without error, but in your case, the first error message 
>>Description: Incorrect XML
means that incoming XML data can't be parsed correctly. 

Please be sure that XML data sent with correct content type ( text/xml ) and has not any unnecessary whitespaces before <?xml definition. 
Attachments (1)