Info in userdata node in tree xml causes code to break

The tree code cannot handle userdata like this one.

<userdata name="url"></userdata>

I want to store urls in userdata to be able to retrieve them in the tree. The code breaks if there are “&” and “=” characters in the url. Do you have a way to get around this?

You should include userdata value into CDATA:

<userdata name="url"><[CDATA[]]></userdata>

This fixed the problem. Thanks.