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); }
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; } }