\section{DOM::Document\-Type Class Reference}
\label{classDOM_1_1DocumentType}\index{DOM::DocumentType@{DOM::DocumentType}}
Each {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} has a {\tt doctype} attribute whose value is either {\tt null} or a {\tt {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})}} object.  


{\tt \#include $<$dom\_\-doc.h$>$}

Inheritance diagram for DOM::Document\-Type:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classDOM_1_1DocumentType__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::Document\-Type:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classDOM_1_1DocumentType__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Document\-Type} (const {\bf Document\-Type} \&other)\label{classDOM_1_1DocumentType_a1}

\item 
{\bf Document\-Type} (const {\bf Node} \&other)\label{classDOM_1_1DocumentType_a2}

\item 
{\bf Document\-Type} \& {\bf operator=} (const {\bf Node} \&other)\label{classDOM_1_1DocumentType_a3}

\item 
{\bf Document\-Type} \& {\bf operator=} (const {\bf Document\-Type} \&other)\label{classDOM_1_1DocumentType_a4}

\item 
{\bf DOMString} {\bf name} () const 
\item 
{\bf Named\-Node\-Map} {\bf entities} () const 
\item 
{\bf Named\-Node\-Map} {\bf notations} () const 
\item 
{\bf DOMString} {\bf public\-Id} () const 
\item 
{\bf DOMString} {\bf system\-Id} () const 
\item 
{\bf DOMString} {\bf internal\-Subset} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf Document\-Type} (Document\-Type\-Impl $\ast$impl)\label{classDOM_1_1DocumentType_b0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Document}\label{classDOM_1_1DocumentType_n0}

\item 
class {\bf DOMImplementation}\label{classDOM_1_1DocumentType_n1}

\end{CompactItemize}


\subsection{Detailed Description}
Each {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} has a {\tt doctype} attribute whose value is either {\tt null} or a {\tt {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})}} object. 

The {\tt {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})}} interface in the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 1 Core provides an interface to the list of entities that are defined for the document, and little else because the effect of namespaces and the various XML scheme efforts on DTD representation are not clearly understood as of this writing.

The {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 1 doesn't support editing {\tt {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})}} nodes. 



Definition at line 1028 of file dom\_\-doc.h.

\subsection{Member Function Documentation}
\index{DOM::DocumentType@{DOM::Document\-Type}!name@{name}}
\index{name@{name}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document\-Type::name () const}\label{classDOM_1_1DocumentType_a6}


The name of DTD; i.e., the name immediately following the {\tt DOCTYPE} keyword. 



Definition at line 636 of file dom\_\-doc.cpp.\index{DOM::DocumentType@{DOM::Document\-Type}!entities@{entities}}
\index{entities@{entities}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Named\-Node\-Map} DOM::Document\-Type::entities () const}\label{classDOM_1_1DocumentType_a7}


A {\tt {\bf Named\-Node\-Map}{\rm (p.\,\pageref{classDOM_1_1NamedNodeMap})}} containing the general entities, both external and internal, declared in the DTD. 

Duplicates are discarded. For example in: $<$!DOCTYPE ex SYSTEM \char`\"{}ex.dtd\char`\"{} [ $<$!ENTITY foo \char`\"{}foo\char`\"{}$>$ $<$!ENTITY bar \char`\"{}bar\char`\"{}$>$ $<$!ENTITY  baz \char`\"{}baz\char`\"{}$>$ ]$>$ $<$ex/$>$ the interface provides access to {\tt foo} and {\tt bar} but not {\tt baz} . Every node in this map also implements the {\tt {\bf Entity}{\rm (p.\,\pageref{classDOM_1_1Entity})}} interface.

The {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 1 does not support editing entities, therefore {\tt entities} cannot be altered in any way. 

Definition at line 644 of file dom\_\-doc.cpp.\index{DOM::DocumentType@{DOM::Document\-Type}!notations@{notations}}
\index{notations@{notations}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Named\-Node\-Map} DOM::Document\-Type::notations () const}\label{classDOM_1_1DocumentType_a8}


A {\tt {\bf Named\-Node\-Map}{\rm (p.\,\pageref{classDOM_1_1NamedNodeMap})}} containing the notations declared in the DTD. 

Duplicates are discarded. Every node in this map also implements the {\tt {\bf Notation}{\rm (p.\,\pageref{classDOM_1_1Notation})}} interface.

The {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 1 does not support editing notations, therefore {\tt notations} cannot be altered in any way. 

Definition at line 652 of file dom\_\-doc.cpp.\index{DOM::DocumentType@{DOM::Document\-Type}!publicId@{publicId}}
\index{publicId@{publicId}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document\-Type::public\-Id () const}\label{classDOM_1_1DocumentType_a9}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2. 

The public identifier of the external subset. 

Definition at line 660 of file dom\_\-doc.cpp.\index{DOM::DocumentType@{DOM::Document\-Type}!systemId@{systemId}}
\index{systemId@{systemId}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document\-Type::system\-Id () const}\label{classDOM_1_1DocumentType_a10}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2. 

The system identifier of the external subset. 

Definition at line 668 of file dom\_\-doc.cpp.\index{DOM::DocumentType@{DOM::Document\-Type}!internalSubset@{internalSubset}}
\index{internalSubset@{internalSubset}!DOM::DocumentType@{DOM::Document\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document\-Type::internal\-Subset () const}\label{classDOM_1_1DocumentType_a11}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2. 

The internal subset as a string.

Note: The actual content returned depends on how much information is available to the implementation. This may vary depending on various parameters, including the XML processor used to build the document. 

Definition at line 676 of file dom\_\-doc.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
dom\_\-doc.h\item 
dom\_\-doc.cpp\end{CompactItemize}
