Add readOpenTag and readCloseTag