Convert XML String to ArrayList

后端 未结 3 640
悲&欢浪女
悲&欢浪女 2021-01-22 00:04

Seems like a basic question but I can\'t find this anywhere. Basically I\'ve got a list of XML links like so: (all in one string)

I already have the \"string\" var which

3条回答
  •  悲&欢浪女
    2021-01-22 00:17

    You are right, there should be some other resources out there that can help you. Maybe your searches just do not use the right keywords.

    You basically have 2 choices:

    1. Use an XML processing library. SAX, DOM, XPATH, & xmlreader are some keywords you can use to find some.

    2. Just ignore the fact that your string is xml and perform normal string operations on it. splits, iterate through it, regular expressions, ect...

提交回复
热议问题