Example #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();
 }
 public void addResult(OneBoxResult oneboxResult)
 {
     this.moduleResults.Add(oneboxResult);
 }
Example #3
0
 private void doOneBoxResult(int tag)
 {
     switch (tag)
     {
         case XMLTags.FIELD:
             currOneBoxResult.addFieldEntry(currOneBoxFieldName, contentBuff.ToString());
             break;
         case XMLTags.MODULE_RESULT:
             currOneBoxResponse.addResult(currOneBoxResult);
             currOneBoxResult = new OneBoxResult();
             inOneBoxResult = false;
             break;
         case XMLTags.U:
             currOneBoxResult.setUrl(contentBuff.ToString());
             break;
     }
 }
Example #4
0
 public void addResult(OneBoxResult oneboxResult)
 {
     this.moduleResults.Add(oneboxResult);
 }