leethomason/tinyxml2 — pull request #211 by mikemayer67 (2014-09-23 20:25:21+00:00)
Title: Fixed DOCTYPE parsing to include internal DTD

The current XMLUnknown class cannot handle parsing when the DTS is provided internal to the XML document ( i.e. contains , , or elements ). This is because the XMLUnknown endString is set to ">".

Rather than modifying the XMLUnknown class, I added a new XMLDtd class which handles the element correctly. I was not sure if there was some other use for XMLUnknown and thus didn't want to mess with its inner workings.

The new XMLDtd class is based on the XMLUnknown class. The only difference is the deepParse method. In XMLDtd, it looks for the presence of an opening square bracket ( '[' ). If found, it must find the matching closing bracket before finding endString ( '>' ).