Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lucy Lisam on Apr 24, 2008 11:31
open dhtmlx forum
Max string length of "text" label of tree?

I'm trying to use a tree (loading it dynamically) with a child that has text of at least 48 characters. But for some reason, I think there is an error because the child text is too long.

When I shorten it to 22, it works but when I increase it to 23 etc, I get the message "Error type: LoadXML Description: Incorrect XML" and then Error Type: DataStructure Description: XML reffers to not existing parent".

Is there a property I can set somewhere to determine the max length? Or is the error unrelated?
Answer posted by Support on Apr 25, 2008 03:35
>>I think there is an error because the child text is too long
There is no hardcoded limitation ( there are some known issue with text > 4k in FF, but not 23 bytes for sure ) for tree item length.
Most probably issue caused by some special chars in text, please be sure
    a) text doesn't contain <  > & chars ( they must be replaced with related entities )
    b) if you are using non-utf encoding - it must be correctly set in <?xml header