implemented xml parser for IfLogicBeginBrick and SpeakBrick