将XML文件读入applet中的下拉列表

时间:2013-06-18 10:36:38

标签: java xml xml-parsing applet

如何创建一个带有从XML文件中提取的下拉列表的Java applet。比方说,例如: 创建此XML文件的下拉列表:?

<?xml version="1.0" encoding="UTF-8" ?> 
- <Countries>
- <Country>
  <Name>India</Name> 
  <City>Noida</City> 
  <City>Bangalore</City> 
  <City>New Delhi</City> 
  <City>Mumbai</City> 
  </Country>
- <Country>
  <Name>US</Name> 
  <City>San Francisco</City> 
  <City>New York</City> 
  <City>Mountain View</City> 
  </Country>
- <Country>
  <Name>United Kingdom</Name> 
  <City>Birmingham</City> 
  <City>London</City> 
  <City>Manchester</City> 
  </Country>
  </Countries>

0 个答案:

没有答案