title: Xmldoc.load giving Object reference not set to an instance of an object
body: <p>I have a string which contains XML. I want to create an XMLdocument from this. I am using Load and LoadXMl methods like this:</p>
  
  <pre><code>   Dim doc As XmlDocument
              doc.LoadXml(applicationXml)
  </code></pre>
  
  <p>but they are retuning:</p>
  
  <pre><code>Object reference not set to an instance of an object.
  </code></pre>
  
  <p>My XML looks like this:</p>
  
  <pre><code>&lt;gate.util.persistence.GateApplication&gt;
    &lt;urlList class="gate.util.persistence.CollectionPersistence"&gt;
      &lt;localList&gt;      
        &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
          &lt;urlString&gt;$gatehome$plugins/LingPipe/&lt;/urlString&gt;
        &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
        &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
          &lt;urlString&gt;$gatehome$plugins/ANNIE/&lt;/urlString&gt;
        &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
        &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
          &lt;urlString&gt;$gatehome$plugins/Stemmer_Snowball/&lt;/urlString&gt;
        &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;     
      &lt;/localList&gt;
      &lt;collectionType&gt;java.util.ArrayList&lt;/collectionType&gt;
    &lt;/urlList&gt;
    &lt;application class="gate.util.persistence.SerialAnalyserControllerPersistence"&gt;
      &lt;prList class="gate.util.persistence.CollectionPersistence"&gt;
        &lt;localList&gt;
          &lt;gate.util.persistence.PRPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;setsToKeep&lt;/string&gt;
                  &lt;null /&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationTypes&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;corpus&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;keepOriginalMarkupsAS&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;setsToRemove&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.annotdelete.AnnotationDeletePR&lt;/resourceType&gt;
            &lt;resourceName&gt;Document Reset PR&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.PRPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationSetName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.tokeniser.DefaultTokeniser&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE English Tokeniser&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;tokeniserRulesURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/tokeniser/DefaultTokeniser.rules&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;transducerGrammarURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/tokeniser/postprocess.jape&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationSetName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;com.ontotext.gate.gazetteer.HashGazetteer&lt;/resourceType&gt;
            &lt;resourceName&gt;TCG Gazetteer&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;listsURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;http://halo.dyndns-web.com:96/tcg/GATE/Gazetteers/MasterListsDef.def&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;caseSensitive&lt;/string&gt;
                  &lt;boolean&gt;false&lt;/boolean&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;wholeWordsOnly&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;longestMatchOnly&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationSetName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.gazetteer.DefaultGazetteer&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE Gazetteer&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;gazetteerFeatureSeparator&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;listsURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/gazetteer/lists.def&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;caseSensitive&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;outputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;inputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.splitter.SentenceSplitter&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE Sentence Splitter&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;gazetteerListsURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/sentenceSplitter/gazetteer/lists.def&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;transducerURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/sentenceSplitter/grammar/main.jape&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;corpus&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;outputAnnotationType&lt;/string&gt;
                  &lt;string&gt;Token&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;inputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;failOnMissingInputAnnotations&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;outputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;baseSentenceAnnotationType&lt;/string&gt;
                  &lt;string&gt;Sentence&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;baseTokenAnnotationType&lt;/string&gt;
                  &lt;string&gt;Token&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.POSTagger&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE POS Tagger&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;rulesURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/heptag/ruleset&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;lexiconURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/heptag/lexicon&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;outputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null /&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;inputASName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.ANNIETransducer&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE NE Transducer&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationAccessors&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;operators&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;grammarURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/NE/main.jape&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.LanguageAnalyserPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationSetName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationTypes&lt;/string&gt;
                  &lt;gate.util.persistence.CollectionPersistence&gt;
                    &lt;localList&gt;
                      &lt;string&gt;Organization&lt;/string&gt;
                      &lt;string&gt;Person&lt;/string&gt;
                      &lt;string&gt;Location&lt;/string&gt;
                      &lt;string&gt;Date&lt;/string&gt;
                    &lt;/localList&gt;
                    &lt;collectionType&gt;java.util.ArrayList&lt;/collectionType&gt;
                  &lt;/gate.util.persistence.CollectionPersistence&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;gate.creole.orthomatcher.OrthoMatcher&lt;/resourceType&gt;
            &lt;resourceName&gt;ANNIE OrthoMatcher&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;definitionFileURL&lt;/string&gt;
                  &lt;gate.util.persistence.PersistenceManager-URLHolder&gt;
                    &lt;urlString&gt;$gatehome$plugins/ANNIE/resources/othomatcher/listsNM.def&lt;/urlString&gt;
                  &lt;/gate.util.persistence.PersistenceManager-URLHolder&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;minimumNicknameLikelihood&lt;/string&gt;
                  &lt;double&gt;0.5&lt;/double&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;extLists&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;encoding&lt;/string&gt;
                  &lt;string&gt;UTF-8&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;caseSensitive&lt;/string&gt;
                  &lt;boolean&gt;false&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;highPrecisionOrgs&lt;/string&gt;
                  &lt;boolean&gt;false&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;personType&lt;/string&gt;
                  &lt;string&gt;Person&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;processUnknown&lt;/string&gt;
                  &lt;boolean&gt;true&lt;/boolean&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;organizationType&lt;/string&gt;
                  &lt;string&gt;Organization&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.LanguageAnalyserPersistence&gt;
          &lt;gate.util.persistence.PRPersistence&gt;
            &lt;runtimeParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;document&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationSetName&lt;/string&gt;
                  &lt;null/&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationType&lt;/string&gt;
                  &lt;string&gt;Token&lt;/string&gt;
                &lt;/entry&gt;
                &lt;entry&gt;
                  &lt;string&gt;annotationFeature&lt;/string&gt;
                  &lt;string&gt;string&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/runtimeParams&gt;
            &lt;resourceType&gt;stemmer.SnowballStemmer&lt;/resourceType&gt;
            &lt;resourceName&gt;Stemmer&lt;/resourceName&gt;
            &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap&gt;
                &lt;entry&gt;
                  &lt;string&gt;language&lt;/string&gt;
                  &lt;string&gt;english&lt;/string&gt;
                &lt;/entry&gt;
              &lt;/localMap&gt;
            &lt;/initParams&gt;
            &lt;features class="gate.util.persistence.MapPersistence"&gt;
              &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
              &lt;localMap/&gt;
            &lt;/features&gt;
          &lt;/gate.util.persistence.PRPersistence&gt;
        &lt;/localList&gt;
        &lt;collectionType&gt;java.util.ArrayList&lt;/collectionType&gt;
      &lt;/prList&gt;
      &lt;resourceType&gt;gate.creole.SerialAnalyserController&lt;/resourceType&gt;
      &lt;resourceName&gt;ANNIE&lt;/resourceName&gt;
      &lt;initParams class="gate.util.persistence.MapPersistence"&gt;
        &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
        &lt;localMap/&gt;
      &lt;/initParams&gt;
      &lt;features class="gate.util.persistence.MapPersistence"&gt;
        &lt;mapType&gt;gate.util.SimpleFeatureMapImpl&lt;/mapType&gt;
        &lt;localMap/&gt;
      &lt;/features&gt;
    &lt;/application&gt;
  &lt;/gate.util.persistence.GateApplication&gt;
  </code></pre>
  
  <p>Please suggest solution to this.</p>