Updated parsing of doctypes.

The resulting nodes now separate the type, public and system IDs in to separate
string values.