我有类似的字符串
String str="<?xml version="1.0" encoding="UTF-8"?><head><heading>Appliance Repairs</heading></head><?xml version="1.0" encoding="UTF-8"?>Appliance Repairs<?xml version="1.0" encoding="UTF-8"?>Air conditioning and refrigeration services<?xml version="1.0" encoding="UTF-8"?>Accountants<?xml version="1.0" encoding="UTF-8"?>Accident Management"
在这里,我只需要提取标签之外的字符串。我在这里需要的输出如下:
Appliance Repairs
Appliance Repairs
Air conditioning and refrigeration services
Accident Management
我必须将这些值存储到列表中,请帮助我..提前谢谢