# dhtmlxtree:api_method_dhtmlxtreeobject_registerxmlentity [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxtree
API Methods

### registerXMLEntity(rChar,rEntity)

Required library edition:
Required library file: dhtmlxtree_xw.js

register XML entity for replacement while initialization (default are: ampersand, lessthen and greaterthen symbols)

- rChar - source char
- rEntity - target entity

This method should be used with the setSerializationLevel method to enable replacement (true as the 3rd parameter).