\section{DOM::Document Class Reference}
\label{classDOM_1_1Document}\index{DOM::Document@{DOM::Document}}
The {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} interface represents the entire HTML or XML document.  


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

Inheritance diagram for DOM::Document:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classDOM_1_1Document__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::Document:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=63pt]{classDOM_1_1Document__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Document} (bool)
\item 
{\bf Document} (const {\bf Document} \&other)\label{classDOM_1_1Document_a2}

\item 
{\bf Document} (const {\bf Node} \&other)\label{classDOM_1_1Document_a3}

\item 
{\bf Document} \& {\bf operator=} (const {\bf Node} \&other)\label{classDOM_1_1Document_a4}

\item 
{\bf Document} \& {\bf operator=} (const {\bf Document} \&other)\label{classDOM_1_1Document_a5}

\item 
{\bf Document\-Type} {\bf doctype} () const 
\item 
{\bf DOMImplementation} {\bf implementation} () const 
\item 
{\bf Element} {\bf document\-Element} () const 
\item 
{\bf Element} {\bf create\-Element} (const {\bf DOMString} \&tag\-Name)
\item 
{\bf Element} {\bf create\-Element\-NS} (const {\bf DOMString} \&namespace\-URI, const {\bf DOMString} \&qualified\-Name)
\item 
{\bf Document\-Fragment} {\bf create\-Document\-Fragment} ()
\item 
{\bf Text} {\bf create\-Text\-Node} (const {\bf DOMString} \&data)
\item 
{\bf Comment} {\bf create\-Comment} (const {\bf DOMString} \&data)
\item 
{\bf CDATASection} {\bf create\-CDATASection} (const {\bf DOMString} \&data)
\item 
{\bf Processing\-Instruction} {\bf create\-Processing\-Instruction} (const {\bf DOMString} \&target, const {\bf DOMString} \&data)
\item 
{\bf Attr} {\bf create\-Attribute} (const {\bf DOMString} \&name)
\item 
{\bf Attr} {\bf create\-Attribute\-NS} (const {\bf DOMString} \&namespace\-URI, const {\bf DOMString} \&qualified\-Name)
\item 
{\bf Entity\-Reference} {\bf create\-Entity\-Reference} (const {\bf DOMString} \&name)
\item 
{\bf Element} {\bf get\-Element\-By\-Id} (const {\bf DOMString} \&element\-Id) const 
\item 
{\bf Node\-List} {\bf get\-Elements\-By\-Tag\-Name} (const {\bf DOMString} \&tagname)
\item 
{\bf Node\-List} {\bf get\-Elements\-By\-Tag\-Name\-NS} (const {\bf DOMString} \&namespace\-URI, const {\bf DOMString} \&local\-Name)
\item 
{\bf Node} {\bf import\-Node} (const {\bf Node} \&imported\-Node, bool deep)
\item 
bool {\bf is\-HTMLDocument} () const \label{classDOM_1_1Document_a24}

\item 
Range {\bf create\-Range} ()
\item 
{\bf Node\-Iterator} {\bf create\-Node\-Iterator} ({\bf Node} root, unsigned long what\-To\-Show, {\bf Node\-Filter} filter, bool entity\-Reference\-Expansion)
\item 
{\bf Tree\-Walker} {\bf create\-Tree\-Walker} ({\bf Node} root, unsigned long what\-To\-Show, {\bf Node\-Filter} filter, bool entity\-Reference\-Expansion)
\item 
{\bf Event} {\bf create\-Event} (const {\bf DOMString} \&event\-Type)
\item 
{\bf Abstract\-View} {\bf default\-View} () const 
\item 
{\bf Style\-Sheet\-List} {\bf style\-Sheets} () const 
\item 
{\bf DOMString} {\bf preferred\-Stylesheet\-Set} ()
\item 
{\bf DOMString} {\bf selected\-Stylesheet\-Set} ()\label{classDOM_1_1Document_a32}

\item 
void {\bf set\-Selected\-Stylesheet\-Set} (const {\bf DOMString} \&a\-String)\label{classDOM_1_1Document_a33}

\item 
void {\bf add\-Style\-Sheet} (const {\bf Style\-Sheet} \&sheet)
\item 
void {\bf remove\-Style\-Sheet} (const {\bf Style\-Sheet} \&sheet)
\item 
{\bf KHTMLView} $\ast$ {\bf view} () const 
\item 
{\bf CSSStyle\-Declaration} {\bf get\-Override\-Style} (const {\bf Element} \&elt, const {\bf DOMString} \&pseudo\-Elt)
\item 
bool {\bf async} () const 
\item 
void {\bf set\-Async} (bool)
\item 
void {\bf abort} ()
\item 
void {\bf load} (const {\bf DOMString} \&uri)
\item 
void {\bf load\-XML} (const {\bf DOMString} \&source)
\item 
bool {\bf design\-Mode} () const 
\item 
void {\bf set\-Design\-Mode} (bool enable)
\item 
{\bf DOMString} {\bf complete\-URL} (const {\bf DOMString} \&url)
\item 
{\bf DOMString} {\bf to\-String} () const \label{classDOM_1_1Document_a46}

\item 
void {\bf update\-Rendering} ()
\item 
{\bf Document} (Document\-Impl $\ast$i)\label{classDOM_1_1Document_a48}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf ::KHTMLView}\label{classDOM_1_1Document_n0}

\item 
class {\bf ::KHTMLPart}\label{classDOM_1_1Document_n1}

\item 
class {\bf Abstract\-View}\label{classDOM_1_1Document_n2}

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

\item 
class {\bf HTMLFrame\-Element}\label{classDOM_1_1Document_n4}

\item 
class {\bf HTMLIFrame\-Element}\label{classDOM_1_1Document_n5}

\item 
class {\bf HTMLObject\-Element}\label{classDOM_1_1Document_n6}

\item 
class {\bf Node}\label{classDOM_1_1Document_n7}

\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} interface represents the entire HTML or XML document. 

Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} , the {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} interface also contains the factory methods needed to create these objects. The {\tt {\bf Node}{\rm (p.\,\pageref{classDOM_1_1Node})}} objects created have a {\tt owner\-Document} attribute which associates them with the {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} within whose context they were created. 



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

\subsection{Constructor \& Destructor Documentation}
\index{DOM::Document@{DOM::Document}!Document@{Document}}
\index{Document@{Document}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DOM::Document::Document (bool)}\label{classDOM_1_1Document_a1}


don't create an implementation if false use at own risk 



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

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


The {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})} Type Declaration (see {\tt {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})}} ) associated with this document. 

For HTML documents as well as XML documents without a document type declaration this returns {\tt null} . The {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 1 does not support editing the {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})} Type Declaration, therefore {\tt doc\-Type} cannot be altered in any way. 

Definition at line 210 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!implementation@{implementation}}
\index{implementation@{implementation}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMImplementation} DOM::Document::implementation () const}\label{classDOM_1_1Document_a8}


The {\tt {\bf DOMImplementation}{\rm (p.\,\pageref{classDOM_1_1DOMImplementation})}} object that handles this document. 

A {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} application may use objects from multiple implementations. 

Definition at line 216 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!documentElement@{documentElement}}
\index{documentElement@{documentElement}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Element} DOM::Document::document\-Element () const}\label{classDOM_1_1Document_a9}


This is a convenience attribute that allows direct access to the child node that is the root element of the document. 

For HTML documents, this is the element with the tag\-Name \char`\"{}HTML\char`\"{}. 

Definition at line 222 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createElement@{createElement}}
\index{createElement@{createElement}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Element} DOM::Document::create\-Element (const {\bf DOMString} \& {\em tag\-Name})}\label{classDOM_1_1Document_a10}


Creates an element of the type specified. 

Note that the instance returned implements the {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})} interface, so attributes can be specified directly on the returned object.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tag\-Name}]The name of the element type to instantiate. For XML, this is case-sensitive. For HTML, the {\tt tag\-Name} parameter may be provided in any case, but it must be mapped to the canonical uppercase form by the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} implementation.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\tt {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})}} object.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-CHARACTER\_\-ERR: Raised if the specified name contains an invalid character. \end{description}
\end{Desc}


Definition at line 228 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createElementNS@{createElementNS}}
\index{createElementNS@{createElementNS}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Element} DOM::Document::create\-Element\-NS (const {\bf DOMString} \& {\em namespace\-URI}, const {\bf DOMString} \& {\em qualified\-Name})}\label{classDOM_1_1Document_a11}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 Creates an element of the given qualified name and namespace URI. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em namespace\-URI}]The namespace URI of the element to create.\item[{\em qualified\-Name}]The qualified name of the element type to instantiate.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})} object with the following attributes:\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em INVALID\_\-CHARACTER\_\-ERR}]Raised if the specified qualified name contains an illegal character.\item[{\em NAMESPACE\_\-ERR}]Raised if the qualified\-Name is malformed, if the qualified\-Name has a prefix and the namespace\-URI is null, or if the qualified\-Name has a prefix that is \char`\"{}xml\char`\"{} and the namespace\-URI is different from \char`\"{}http://www.w3.org/XML/1998/namespace\char`\"{} \end{description}
\end{Desc}


Definition at line 240 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createDocumentFragment@{createDocumentFragment}}
\index{createDocumentFragment@{createDocumentFragment}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Document\-Fragment} DOM::Document::create\-Document\-Fragment ()}\label{classDOM_1_1Document_a12}


Creates an empty {\tt {\bf Document\-Fragment}{\rm (p.\,\pageref{classDOM_1_1DocumentFragment})}} object. 

\begin{Desc}
\item[Returns:]A new {\tt {\bf Document\-Fragment}{\rm (p.\,\pageref{classDOM_1_1DocumentFragment})}} . \end{Desc}


Definition at line 252 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createTextNode@{createTextNode}}
\index{createTextNode@{createTextNode}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Text} DOM::Document::create\-Text\-Node (const {\bf DOMString} \& {\em data})}\label{classDOM_1_1Document_a13}


Creates a {\tt {\bf Text}{\rm (p.\,\pageref{classDOM_1_1Text})}} node given the specified string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data for the node.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new {\tt {\bf Text}{\rm (p.\,\pageref{classDOM_1_1Text})}} object. \end{Desc}


Definition at line 258 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createComment@{createComment}}
\index{createComment@{createComment}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Comment} DOM::Document::create\-Comment (const {\bf DOMString} \& {\em data})}\label{classDOM_1_1Document_a14}


Creates a {\tt {\bf Comment}{\rm (p.\,\pageref{classDOM_1_1Comment})}} node given the specified string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data for the node.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new {\tt {\bf Comment}{\rm (p.\,\pageref{classDOM_1_1Comment})}} object. \end{Desc}


Definition at line 264 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createCDATASection@{createCDATASection}}
\index{createCDATASection@{createCDATASection}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CDATASection} DOM::Document::create\-CDATASection (const {\bf DOMString} \& {\em data})}\label{classDOM_1_1Document_a15}


Creates a {\tt {\bf CDATASection}{\rm (p.\,\pageref{classDOM_1_1CDATASection})}} node whose value is the specified string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data for the {\tt {\bf CDATASection}{\rm (p.\,\pageref{classDOM_1_1CDATASection})}} contents.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new {\tt {\bf CDATASection}{\rm (p.\,\pageref{classDOM_1_1CDATASection})}} object.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if this document is an HTML document. \end{description}
\end{Desc}


Definition at line 270 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createProcessingInstruction@{createProcessingInstruction}}
\index{createProcessingInstruction@{createProcessingInstruction}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Processing\-Instruction} DOM::Document::create\-Processing\-Instruction (const {\bf DOMString} \& {\em target}, const {\bf DOMString} \& {\em data})}\label{classDOM_1_1Document_a16}


Creates a {\tt {\bf Processing\-Instruction}{\rm (p.\,\pageref{classDOM_1_1ProcessingInstruction})}} node given the specified name and data strings. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em target}]The target part of the processing instruction.\item[{\em data}]The data for the node.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new {\tt {\bf Processing\-Instruction}{\rm (p.\,\pageref{classDOM_1_1ProcessingInstruction})}} object.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-CHARACTER\_\-ERR: Raised if an invalid character is specified.\end{description}
\end{Desc}
NOT\_\-SUPPORTED\_\-ERR: Raised if this document is an HTML document. 

Definition at line 277 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createAttribute@{createAttribute}}
\index{createAttribute@{createAttribute}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Attr} DOM::Document::create\-Attribute (const {\bf DOMString} \& {\em name})}\label{classDOM_1_1Document_a17}


Creates an {\tt {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})}} of the given name. 

Note that the {\tt {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})}} instance can then be set on an {\tt {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})}} using the {\tt set\-Attribute} method.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The name of the attribute.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\tt {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})}} object.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-CHARACTER\_\-ERR: Raised if the specified name contains an invalid character. \end{description}
\end{Desc}


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

References QString::is\-Null().\index{DOM::Document@{DOM::Document}!createAttributeNS@{createAttributeNS}}
\index{createAttributeNS@{createAttributeNS}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Attr} DOM::Document::create\-Attribute\-NS (const {\bf DOMString} \& {\em namespace\-URI}, const {\bf DOMString} \& {\em qualified\-Name})}\label{classDOM_1_1Document_a18}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 Creates an attribute of the given qualified name and namespace URI. 

HTML-only {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} implementations do not need to implement this method.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em namespace\-URI}]The namespace URI of the attribute to create.\item[{\em qualified\-Name}]The qualified name of the attribute to instantiate.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})} object with the following attributes: {\bf Node.node\-Name}{\rm (p.\,\pageref{classDOM_1_1Node_a7})} - qualified\-Name {\bf Node.namespace\-URI}{\rm (p.\,\pageref{classDOM_1_1Node_a27})} - namespace\-URI {\bf Node.prefix}{\rm (p.\,\pageref{classDOM_1_1Node_a28})} - prefix, extracted from qualified\-Name, or null if there is no prefix {\bf Node.local\-Name}{\rm (p.\,\pageref{classDOM_1_1Node_a30})} - local name, extracted from qualified\-Name {\bf Attr.name}{\rm (p.\,\pageref{classDOM_1_1Attr_a6})} - qualified\-Name {\bf Node.node\-Value}{\rm (p.\,\pageref{classDOM_1_1Node_a8})} - the empty string\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em INVALID\_\-CHARACTER\_\-ERR}]Raised if the specified qualified name contains an illegal character.\item[{\em NAMESPACE\_\-ERR}]Raised if the qualified\-Name is malformed, if the qualified\-Name has a prefix and the namespace\-URI is null, if the qualified\-Name has a prefix that is \char`\"{}xml\char`\"{} and the namespace\-URI is different from \char`\"{}http://www.w3.org/XML/1998/namespace\char`\"{}, or if the qualified\-Name is \char`\"{}xmlns\char`\"{} and the namespace\-URI is different from \char`\"{}http://www.w3.org/2000/xmlns/\char`\"{}. \end{description}
\end{Desc}


Definition at line 294 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createEntityReference@{createEntityReference}}
\index{createEntityReference@{createEntityReference}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Entity\-Reference} DOM::Document::create\-Entity\-Reference (const {\bf DOMString} \& {\em name})}\label{classDOM_1_1Document_a19}


Creates an {\bf Entity\-Reference}{\rm (p.\,\pageref{classDOM_1_1EntityReference})} object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The name of the entity to reference.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new {\tt {\bf Entity\-Reference}{\rm (p.\,\pageref{classDOM_1_1EntityReference})}} object.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-CHARACTER\_\-ERR: Raised if the specified name contains an invalid character.\end{description}
\end{Desc}
NOT\_\-SUPPORTED\_\-ERR: Raised if this document is an HTML document. 

Definition at line 305 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!getElementById@{getElementById}}
\index{getElementById@{getElementById}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Element} DOM::Document::get\-Element\-By\-Id (const {\bf DOMString} \& {\em element\-Id}) const}\label{classDOM_1_1Document_a20}


Moved from {\bf HTMLDocument}{\rm (p.\,\pageref{classDOM_1_1HTMLDocument})} in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 Returns the {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})} whose {\tt id} is given by element\-Id. 

If no such element exists, returns {\tt null} . Behavior is not defined if more than one element has this {\tt id} .

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em element\-Id}]The unique {\tt id} value for an element.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The matching element. \end{Desc}


Definition at line 311 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!getElementsByTagName@{getElementsByTagName}}
\index{getElementsByTagName@{getElementsByTagName}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Node\-List} DOM::Document::get\-Elements\-By\-Tag\-Name (const {\bf DOMString} \& {\em tagname})}\label{classDOM_1_1Document_a21}


No Exceptions. 

Returns a {\tt {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})}} of all the {\tt {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})}} 's with a given tag name in the order in which they would be encountered in a preorder traversal of the {\tt {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}} tree.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tagname}]The name of the tag to match on. The special value \char`\"{}$\ast$\char`\"{} matches all tags.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\tt {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})}} object containing all the matched {\tt {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})}} s. \end{Desc}


Definition at line 317 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!getElementsByTagNameNS@{getElementsByTagNameNS}}
\index{getElementsByTagNameNS@{getElementsByTagNameNS}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Node\-List} DOM::Document::get\-Elements\-By\-Tag\-Name\-NS (const {\bf DOMString} \& {\em namespace\-URI}, const {\bf DOMString} \& {\em local\-Name})}\label{classDOM_1_1Document_a22}


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

Returns a {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})} tree.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em namespace\-URI}]The namespace URI of the elements to match on. The special value \char`\"{}$\ast$\char`\"{} matches all namespaces.\item[{\em local\-Name}]The local name of the elements to match on. The special value \char`\"{}$\ast$\char`\"{} matches all local names.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A new {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} object containing all the matched Elements. \end{Desc}


Definition at line 328 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!importNode@{importNode}}
\index{importNode@{importNode}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Node} DOM::Document::import\-Node (const {\bf Node} \& {\em imported\-Node}, bool {\em deep})}\label{classDOM_1_1Document_a23}


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

Imports a node from another document to this document. The returned node has no parent; (parent\-Node is null). The source node is not altered or removed from the original document; this method creates a new copy of the source node.

For all nodes, importing a node creates a node object owned by the importing document, with attribute values identical to the source node's node\-Name and node\-Type, plus the attributes related to namespaces (prefix, local\-Name, and namespace\-URI).

As in the clone\-Node operation on a {\bf Node}{\rm (p.\,\pageref{classDOM_1_1Node})}, the source node is not altered. Additional information is copied as appropriate to the node\-Type, attempting to mirror the behavior expected if a fragment of XML or HTML source was copied from one document to another, recognizing that the two documents may have different DTDs in the XML case. The following list describes the specifics for each type of node.

ATTRIBUTE\_\-NODE The owner\-Element attribute is set to null and the specified flag is set to true on the generated {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})}. The descendants of the source {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})} are recursively imported and the resulting nodes reassembled to form the corresponding subtree. Note that the deep parameter has no effect on {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})} nodes; they always carry their children with them when imported.

DOCUMENT\_\-FRAGMENT\_\-NODE If the deep option was set to true, the descendants of the source element are recursively imported and the resulting nodes reassembled to form the corresponding subtree. Otherwise, this simply generates an empty {\bf Document\-Fragment}{\rm (p.\,\pageref{classDOM_1_1DocumentFragment})}.

DOCUMENT\_\-NODE {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})} nodes cannot be imported.

DOCUMENT\_\-TYPE\_\-NODE {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})} nodes cannot be imported.

ELEMENT\_\-NODE Specified attribute nodes of the source element are imported, and the generated {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})} nodes are attached to the generated {\bf Element}{\rm (p.\,\pageref{classDOM_1_1Element})}. Default attributes are not copied, though if the document being imported into defines default attributes for this element name, those are assigned. If the import\-Node deep parameter was set to true, the descendants of the source element are recursively imported and the resulting nodes reassembled to form the corresponding subtree.

ENTITY\_\-NODE {\bf Entity}{\rm (p.\,\pageref{classDOM_1_1Entity})} nodes can be imported, however in the current release of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} the {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})} is readonly. Ability to add these imported nodes to a {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})} will be considered for addition to a future release of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})}. On import, the public\-Id, system\-Id, and notation\-Name attributes are copied. If a deep import is requested, the descendants of the the source {\bf Entity}{\rm (p.\,\pageref{classDOM_1_1Entity})} are recursively imported and the resulting nodes reassembled to form the corresponding subtree.

ENTITY\_\-REFERENCE\_\-NODE Only the {\bf Entity\-Reference}{\rm (p.\,\pageref{classDOM_1_1EntityReference})} itself is copied, even if a deep import is requested, since the source and destination documents might have defined the entity differently. If the document being imported into provides a definition for this entity name, its value is assigned.

NOTATION\_\-NODE {\bf Notation}{\rm (p.\,\pageref{classDOM_1_1Notation})} nodes can be imported, however in the current release of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} the {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})} is readonly. Ability to add these imported nodes to a {\bf Document\-Type}{\rm (p.\,\pageref{classDOM_1_1DocumentType})} will be considered for addition to a future release of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})}. On import, the public\-Id and system\-Id attributes are copied. Note that the deep parameter has no effect on {\bf Notation}{\rm (p.\,\pageref{classDOM_1_1Notation})} nodes since they never have any children.

PROCESSING\_\-INSTRUCTION\_\-NODE The imported node copies its target and data values from those of the source node.

TEXT\_\-NODE, CDATA\_\-SECTION\_\-NODE, COMMENT\_\-NODE These three types of nodes inheriting from {\bf Character\-Data}{\rm (p.\,\pageref{classDOM_1_1CharacterData})} copy their data and length attributes from those of the source node.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em imported\-Node}]The node to import.\item[{\em deep}]If true, recursively import the subtree under the specified node; if false, import only the node itself, as explained above. This has no effect on {\bf Attr}{\rm (p.\,\pageref{classDOM_1_1Attr})}, {\bf Entity\-Reference}{\rm (p.\,\pageref{classDOM_1_1EntityReference})}, and {\bf Notation}{\rm (p.\,\pageref{classDOM_1_1Notation})} nodes.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The imported node that belongs to this {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if the type of node being imported is not supported. \end{description}
\end{Desc}


Definition at line 334 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!createRange@{createRange}}
\index{createRange@{createRange}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Range DOM::Document::create\-Range ()}\label{classDOM_1_1Document_a25}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-Range interface. 

\begin{Desc}
\item[Returns:]Range The initial state of the Range returned from this method is such that both of its boundary-points are positioned at the beginning of the corresponding {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}, before any content. The Range returned can only be used to select content associated with this {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}, or with Document\-Fragments and Attrs for which this {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})} is the owner\-Document. \end{Desc}


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

Referenced by KHTMLPart::selection().\index{DOM::Document@{DOM::Document}!createNodeIterator@{createNodeIterator}}
\index{createNodeIterator@{createNodeIterator}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Node\-Iterator} DOM::Document::create\-Node\-Iterator ({\bf Node} {\em root}, unsigned long {\em what\-To\-Show}, {\bf Node\-Filter} {\em filter}, bool {\em entity\-Reference\-Expansion})}\label{classDOM_1_1Document_a26}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-Traversal interface. 

Create a new {\bf Node\-Iterator}{\rm (p.\,\pageref{classDOM_1_1NodeIterator})} over the subtree rooted at the specified node.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em root}]The node which will be iterated together with its children. The iterator is initially positioned just before this node. The what\-To\-Show flags and the filter, if any, are not considered when setting this position. The root must not be null.\item[{\em what\-To\-Show}]This flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of {\bf Node\-Filter}{\rm (p.\,\pageref{classDOM_1_1NodeFilter})} for the set of possible SHOW\_\- values. These flags can be combined using OR.\item[{\em filter}]The {\bf Node\-Filter}{\rm (p.\,\pageref{classDOM_1_1NodeFilter})} to be used with this {\bf Node\-Iterator}{\rm (p.\,\pageref{classDOM_1_1NodeIterator})}, or null to indicate no filter.\item[{\em entity\-Reference\-Expansion}]The value of this flag determines whether entity reference nodes are expanded.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]{\bf Node\-Iterator}{\rm (p.\,\pageref{classDOM_1_1NodeIterator})} The newly created {\bf Node\-Iterator}{\rm (p.\,\pageref{classDOM_1_1NodeIterator})}.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if the specified root is null. \end{description}
\end{Desc}


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

References DOM::Node::handle().\index{DOM::Document@{DOM::Document}!createTreeWalker@{createTreeWalker}}
\index{createTreeWalker@{createTreeWalker}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Tree\-Walker} DOM::Document::create\-Tree\-Walker ({\bf Node} {\em root}, unsigned long {\em what\-To\-Show}, {\bf Node\-Filter} {\em filter}, bool {\em entity\-Reference\-Expansion})}\label{classDOM_1_1Document_a27}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-Traversal interface. 

Create a new {\bf Tree\-Walker}{\rm (p.\,\pageref{classDOM_1_1TreeWalker})} over the subtree rooted at the specified node.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em root}]The node which will serve as the root for the {\bf Tree\-Walker}{\rm (p.\,\pageref{classDOM_1_1TreeWalker})}. The what\-To\-Show flags and the {\bf Node\-Filter}{\rm (p.\,\pageref{classDOM_1_1NodeFilter})} are not considered when setting this value; any node type will be accepted as the root. The current\-Node of the {\bf Tree\-Walker}{\rm (p.\,\pageref{classDOM_1_1TreeWalker})} is initialized to this node, whether or not it is visible. The root functions as a stopping point for traversal methods that look upward in the document structure, such as parent\-Node and next\-Node. The root must not be null.\item[{\em what\-To\-Show}]This flag specifies which node types may appear in the logical view of the tree presented by the tree-walker. See the description of {\bf Node\-Filter}{\rm (p.\,\pageref{classDOM_1_1NodeFilter})} for the set of possible SHOW\_\- values. These flags can be combined using OR.\item[{\em filter}]The {\bf Node\-Filter}{\rm (p.\,\pageref{classDOM_1_1NodeFilter})} to be used with this {\bf Tree\-Walker}{\rm (p.\,\pageref{classDOM_1_1TreeWalker})}, or null to indicate no filter.\item[{\em entity\-Reference\-Expansion}]If this flag is false, the contents of {\bf Entity\-Reference}{\rm (p.\,\pageref{classDOM_1_1EntityReference})} nodes are not presented in the logical view.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The newly created {\bf Tree\-Walker}{\rm (p.\,\pageref{classDOM_1_1TreeWalker})}.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if the specified root is null. \end{description}
\end{Desc}


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

References DOM::Node\-Filter::handle(), and DOM::Node::handle().\index{DOM::Document@{DOM::Document}!createEvent@{createEvent}}
\index{createEvent@{createEvent}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Event} DOM::Document::create\-Event (const {\bf DOMString} \& {\em event\-Type})}\label{classDOM_1_1Document_a28}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-Event interface. 

The create\-Event method is used in creating Events when it is either inconvenient or unnecessary for the user to create an {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} themselves. In cases where the implementation provided {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} is insufficient, users may supply their own {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} implementations for use with the dispatch\-Event method.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em event\-Type}]The event\-Type parameter specifies the type of {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} interface to be created. If the {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} interface specified is supported by the implementation this method will return a new {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} of the interface type requested. If the {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} is to be dispatched via the dispatch\-Event method the appropriate event init method must be called after creation in order to initialize the Event's values. As an example, a user wishing to synthesize some kind of {\bf UIEvent}{\rm (p.\,\pageref{classDOM_1_1UIEvent})} would call create\-Event with the parameter \char`\"{}UIEvents\char`\"{}. The init\-UIEvent method could then be called on the newly created {\bf UIEvent}{\rm (p.\,\pageref{classDOM_1_1UIEvent})} to set the specific type of {\bf UIEvent}{\rm (p.\,\pageref{classDOM_1_1UIEvent})} to be dispatched and set its context information.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The newly created Event\-Exceptions\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if the implementation does not support the type of {\bf Event}{\rm (p.\,\pageref{classDOM_1_1Event})} interface requested \end{description}
\end{Desc}


Definition at line 388 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!defaultView@{defaultView}}
\index{defaultView@{defaultView}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Abstract\-View} DOM::Document::default\-View () const}\label{classDOM_1_1Document_a29}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-View interface. 

The default {\bf Abstract\-View}{\rm (p.\,\pageref{classDOM_1_1AbstractView})} for this {\bf Document}{\rm (p.\,\pageref{classDOM_1_1Document})}, or null if none available. 

Definition at line 400 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!styleSheets@{styleSheets}}
\index{styleSheets@{styleSheets}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Style\-Sheet\-List} DOM::Document::style\-Sheets () const}\label{classDOM_1_1Document_a30}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-Style interface. 

A list containing all the style sheets explicitly linked into or embedded in a document. For HTML documents, this includes external style sheets, included via the HTML LINK element, and inline STYLE elements. In XML, this includes external style sheets, included via style sheet processing instructions (see [XML-Style\-Sheet]). 

Definition at line 408 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!preferredStylesheetSet@{preferredStylesheetSet}}
\index{preferredStylesheetSet@{preferredStylesheetSet}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document::preferred\-Stylesheet\-Set ()}\label{classDOM_1_1Document_a31}


CSS3 mechanism for selecting alternate stylesheets using the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})}. 

Might change without further notice. 

Definition at line 416 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!addStyleSheet@{addStyleSheet}}
\index{addStyleSheet@{addStyleSheet}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::add\-Style\-Sheet (const {\bf Style\-Sheet} \& {\em sheet})}\label{classDOM_1_1Document_a34}


Adds a new style sheet to the list of style sheets. 

The new style sheet will be applied after all author and implicit style sheets, but before the user style sheet.

Create new style sheets with e. g. {\tt {\bf DOMImplementation::create\-CSSStyle\-Sheet}{\rm (p.\,\pageref{classDOM_1_1DOMImplementation_a8})}} 

This is not part of the official {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sheet}]style sheet \end{description}
\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]\end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 536 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!removeStyleSheet@{removeStyleSheet}}
\index{removeStyleSheet@{removeStyleSheet}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::remove\-Style\-Sheet (const {\bf Style\-Sheet} \& {\em sheet})}\label{classDOM_1_1Document_a35}


Removes a style sheet to the list of style sheets. 

Only sheets added by {\tt add\-Style\-Sheet} may be removed.

This is not part of the official {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sheet}]style sheet to remove \end{description}
\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-FOUND\_\-ERR {\tt sheet} is not contained in the list of style sheets or it has not been added by {\tt add\-Style\-Sheet} \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 547 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!view@{view}}
\index{view@{view}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLView} $\ast$ DOM::Document::view () const}\label{classDOM_1_1Document_a36}


\begin{Desc}
\item[Returns:]The KHTML view widget of this document. \end{Desc}


Definition at line 441 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!getOverrideStyle@{getOverrideStyle}}
\index{getOverrideStyle@{getOverrideStyle}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CSSStyle\-Declaration} DOM::Document::get\-Override\-Style (const {\bf Element} \& {\em elt}, const {\bf DOMString} \& {\em pseudo\-Elt})}\label{classDOM_1_1Document_a37}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 2 This method is from the Document\-CSS interface. 

This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em elt}]The element whose style is to be modified. This parameter cannot be null.\item[{\em pseudo\-Elt}]The pseudo-element or null if none.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The override style declaration. \end{Desc}


Definition at line 448 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!async@{async}}
\index{async@{async}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool DOM::Document::async () const}\label{classDOM_1_1Document_a38}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 This method is from the Document\-LS interface. 

Indicates whether the method Document\-LS.load() should be synchronous or asynchronous. When the async attribute is set to true the load method returns control to the caller before the document has completed loading. The default value of this attribute is true. 

Definition at line 460 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!setAsync@{setAsync}}
\index{setAsync@{setAsync}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::set\-Async (bool)}\label{classDOM_1_1Document_a39}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 This method is from the Document\-LS interface. 

see async

\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]NOT\_\-SUPPORTED\_\-ERR: Raised if the implementation doesn't support the mode the attribute is being set to. \end{description}
\end{Desc}


Definition at line 468 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!abort@{abort}}
\index{abort@{abort}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::abort ()}\label{classDOM_1_1Document_a40}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 This method is from the Document\-LS interface. 

If the document is currently being loaded as a result of the method load being invoked the loading and parsing is immediately aborted. The possibly partial result of parsing the document is discarded and the document is cleared. 

Definition at line 476 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!load@{load}}
\index{load@{load}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::load (const {\bf DOMString} \& {\em uri})}\label{classDOM_1_1Document_a41}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 This method is from the Document\-LS interface. 

Replaces the content of the document with the result of parsing the given URI. Invoking this method will either block the caller or return to the caller immediately depending on the value of the async attribute. Once the document is fully loaded a \char`\"{}load\char`\"{} event (as defined in [{\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 Events], except that the Event.target\-Node will be the document, not an element) will be dispatched on the document. If an error occurs, an implementation dependent \char`\"{}error\char`\"{} event will be dispatched on the document. If this method is called on a document that is currently loading, the current load is interrupted and the new URI load is initiated.

When invoking this method the parameters used in the DOMParser interface are assumed to have their default values with the exception that the parameters \char`\"{}entities\char`\"{}, \char`\"{}normalize-characters\char`\"{}, \char`\"{}check-character-normalization\char`\"{} are set to \char`\"{}false\char`\"{}.

The result of a call to this method is the same the result of a call to DOMParser.parse\-With\-Context with an input stream referencing the URI that was passed to this call, the document as the context node, and the action ACTION\_\-REPLACE\_\-CHILDREN.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em uri}]of type {\bf DOMString}{\rm (p.\,\pageref{classDOM_1_1DOMString})} The URI reference for the XML file to be loaded. If this is a relative URI, the base URI used by the implementation is implementation dependent.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]If async is set to true load returns true if the document load was successfully initiated. If an error occurred when initiating the document load, load returns false. If async is set to false load returns true if the document was successfully loaded and parsed. If an error occurred when either loading or parsing the URI, load returns false. \end{Desc}


Definition at line 485 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!loadXML@{loadXML}}
\index{loadXML@{loadXML}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::load\-XML (const {\bf DOMString} \& {\em source})}\label{classDOM_1_1Document_a42}


Introduced in {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} Level 3 This method is from the Document\-LS interface. 

Replace the content of the document with the result of parsing the input string, this method is always synchronous. This method always parses from a {\bf DOMString}{\rm (p.\,\pageref{classDOM_1_1DOMString})}, which means the data is always UTF-16. All other encoding information is ignored.

The parameters used in the DOMParser interface are assumed to have their default values when invoking this method.

The result of a call to this method is the same as the result of a call to DOMParser.parse\-With\-Context with an input stream containing the string passed to this call, the document as the context node, and the action ACTION\_\-REPLACE\_\-CHILDREN.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em source}]A string containing an XML document. \end{description}
\end{Desc}


Definition at line 493 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!designMode@{designMode}}
\index{designMode@{designMode}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool DOM::Document::design\-Mode () const}\label{classDOM_1_1Document_a43}


not part of the official {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} 

Documents are read-only by default, but they can be made editable by entering \char`\"{}design mode\char`\"{}.

\begin{Desc}
\item[Returns:]whether this document is in design mode. \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 502 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!setDesignMode@{setDesignMode}}
\index{setDesignMode@{setDesignMode}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::set\-Design\-Mode (bool {\em enable})}\label{classDOM_1_1Document_a44}


not part of the official {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em enable}]{\tt true} to enable design mode, {\tt false} to disable. \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf design\-Mode}{\rm (p.\,\pageref{classDOM_1_1Document_a43})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 509 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!completeURL@{completeURL}}
\index{completeURL@{completeURL}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} DOM::Document::complete\-URL (const {\bf DOMString} \& {\em url})}\label{classDOM_1_1Document_a45}


not part of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} 

completes a given URL 

Definition at line 516 of file dom\_\-doc.cpp.\index{DOM::Document@{DOM::Document}!updateRendering@{updateRendering}}
\index{updateRendering@{updateRendering}!DOM::Document@{DOM::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DOM::Document::update\-Rendering ()}\label{classDOM_1_1Document_a47}


not part of the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} 

Updates the rendered display after one or more changes to the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} structure 

Definition at line 530 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}
