예제 #1
0
 internal XMLParser()
 {
     response = new Response();
     contentBuff = new StringBuilder();
     resultsList = new ArrayList();
     keyMatchasList = new ArrayList();
     currResult = new Result();
     currKeyMatch = new KeyMatches();
     currOneBoxResponse = new OneBoxResponse();
     currOneBoxResult = new OneBoxResult();
     xmlTags = new XMLTags();
 }
예제 #2
0
 private void doKeyMatch(int tag)
 {
     switch (tag)
     {
         case XMLTags.GM:
             keyMatchasList.Add(currKeyMatch);
             currKeyMatch = new KeyMatches();
             inKeyMatches = false;
             response.setKeyMatches(keyMatchasList);
             break;
         case XMLTags.GL:
             currKeyMatch.setURL(contentBuff.ToString());
             break;
         case XMLTags.GD:
             currKeyMatch.setDescription(contentBuff.ToString());
             break;
     }
 }