Exemple #1
0
func UpdateParse(r io.Reader) (deleteDrugs DeleteList, updateDrugs []DrugURL, err error) {
	uh := NewUpdateHandler()
	p := saxlike.NewParser(r, uh)
	p.SetHTMLMode()
	err = p.Parse()
	if err != nil {
		return
	}
	deleteDrugs = uh.DeleteList
	updateDrugs = uh.UpdateList
	return
}
Exemple #2
0
func (getter *TitleGetterHandler) Parse(input io.Reader) {
	parser := saxlike.NewParser(input, getter)
	parser.SetHTMLMode()
	parser.Parse()
}