I would like to edit the template for the automatically generated DOM Tree Scanner in NetBeans 8.2. However, I cannot find it. At the top of the automatically generated java class, it says to go to Tools | Templates. I went through those items but was unable to find the template. I would like to convert the if statements, which check the XML tag-names, to a switch. And then using this template, I would like to create a JSON scanner as well. I would appreciate any help anyone can provide. Thank you in advance.