Parses the given doctype, adding all entity declarations to the ones already known.
See Implementation
Parses the given doctype, adding all entity declarations to the ones already known.