从String获取数据并将其放入List中

时间:2017-11-21 09:52:23

标签: c# string list soap

我想在C#中创建一个字符串列表。这些字符串都来自这个字符串:

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"
    defaultConfig {
        applicationId "bd.com.vroom"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE-FIREBASE.txt'
        exclude 'META-INF/NOTICE'

    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    ext {
        support_library_version = "26.1.0"
        google_play_services_version = "11.0.1"
    }

    compile "com.android.support:appcompat-v7:${support_library_version}"
    compile "com.android.support:mediarouter-v7:${support_library_version}"
    compile "com.android.support:design:${support_library_version}"
    compile "com.android.support:cardview-v7:${support_library_version}"
    compile "com.android.support:recyclerview-v7:${support_library_version}"
    compile "com.android.support:support-v4:${support_library_version}"
    compile "com.android.support:support-v13:${support_library_version}"

    compile "com.google.android.gms:play-services-location:${google_play_services_version}"
    compile "com.google.android.gms:play-services-maps:${google_play_services_version}"
    compile "com.google.android.gms:play-services-places:${google_play_services_version}"

    compile('com.github.worker8:tourguide:1.0.17-SNAPSHOT@aar') {
        transitive = true
    }
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.balysv:material-ripple:1.0.2'
    compile 'com.afollestad.material-dialogs:core:0.9.4.4'
    compile 'me.relex:circleindicator:1.2.2@aar'
    compile 'com.patrickpissurno:ripple-effect:1.3.1'
    compile 'com.github.bumptech.glide:glide:3.8.0'
    compile 'jp.wasabeef:glide-transformations:2.0.2'
    compile 'com.yuyakaido.android:card-stack-view:1.0.0-beta5'
    compile 'noman.placesapi:placesAPI:1.1.3'
    compile 'com.facebook.android:account-kit-sdk:4.+'
    compile 'com.wdullaer:materialdatetimepicker:3.4.0'
    compile 'com.loopj.android:android-async-http:1.4.9'
    testCompile 'junit:junit:4.12'
}

此字符串来自soap响应。这是我的要求:

<Functie><Titel><![CDATA[voorzitter]]></Titel></Functie><Functie><Titel><![CDATA[planner]]></Titel></Functie><Functie><Titel><![CDATA[barman1]]></Titel></Functie><Functie><Titel><![CDATA[barman2]]></Titel></Functie><Functie><Titel><![CDATA[barman3]]></Titel></Functie>

我想得到括号之间的数据,所以我的列表将是:voorzitter,planner,barman1,barman2,barman3。

有人可以帮我解决这个问题吗?

0 个答案:

没有答案