Modified codebase to read XML child elements