I have an XML data file somewhat like the one below with up to five levels deep (variable). I want the user to be able to pick a path by navigating a tree (i.e. Canada/Alberta/Calgary) and have that path put into a data field. If they only navigate part way into the path (i.e. Mexico/Sonora) then that would go in the data field. I have some control of the structure of the XML as I am creating it from a CSV file.
Any examples or good advice that you can provide is greatly appreciated. I'm OK manipulating XML but am quite a newbie at PDF forms & Javascript.
<location>
<country name="Canada">
<prov-state name="British Columbia">
<city name="Victoria" />
<city name="Nanaimo" />
</prov-state>
<prov-state name="Alberta">
<city name="Calgary" />
<city name="Lethbridge" />
</prov-state>
</country>
<country name="Mexico">
<prov-state name="Sonora">
<city name="Guaymas" />
</prov-state>
</country>
</location>