Using the DOM with SGML Documents
The DOM is designed to support XML documents. The DOM support for SGML documents is limited to parallel support for XML. If you'll be working with SGML documents, the DOM will ignore IGNORE marked sections and RCDATA sections. If an element in an SGML document contains three sub-elements, and one of the sub-elements is an IGNORE marked section or an RCDATA section, user-written DOM programs will see only two sub-elements.