How to generate a expand/collapse treeview from xml file using react.js?

Hi,

I am new to asp.net core and react.js. Please help me how to generate a expand/collapse treeview from XML file?
Please find my XML and react code:

GenerateTree is the component name. Please let me know how to show data as a treeview from XML file. Tree can expand and collapse on click.
Id=”e11” first number shows the node level.
Id=”e248” it’s the second node level.
Its going to be a big XML file. Need to find code that will work for big xml file.

Sales
Service
Original Tree looks like this without expanding Nodes.
Sales
A_test1_test1
A_Product1
A_Test_Template
A_test2_test2
A_Product2
Service
-Click on Sales will open Add_Item Component in right panel. With component we are passing the key-id also.
-Click on A_test1_test1 will open Add_SubItem Component
-Click on A_Product1 will open Edit_SubItem component
-Click on A_Test_Template will open Edit_Templ
-Click on - image will collapse node. click on + image will expand node

XML file

<?xml version="1.0" standalone="yes"?> Sales images/plus.gif images/de.gif images/minus.gif A_test1_test1 images/plus.gif images/de.gif images/minus.gif A_Product1 images/plus.gif images/de.gif images/minus.gif A_Test_Template images/paper.gif images/paper.gif A_test6 images/plus.gif images/de.gif images/minus.gif A_prod images/plus.gif images/de.gif images/minus.gif temp1 images/paper.gif images/paper.gif Gift Card images/plus.gif images/de.gif images/minus.gif Card images/plus.gif images/de.gif images/minus.gif All images/paper.gif images/paper.gif Service images/plus.gif images/de.gif images/minus.gif Cards images/plus.gif images/de.gif images/minus.gif Business Card images/plus.gif images/de.gif images/minus.gif Template images/paper.gif images/paper.gif Business Card images/plus.gif images/de.gif images/minus.gif tt images/paper.gif images/paper.gif testCard images/plus.gif images/de.gif images/minus.gif Ntt images/paper.gif images/paper.gif Business Card images/plus.gif images/de.gif images/minus.gif yyy images/paper.gif images/paper.gif jjj images/paper.gif images/paper.gif Emergency Card images/plus.gif images/de.gif images/minus.gif All images/paper.gif images/paper.gif

Thanks