diff options
Diffstat (limited to 'doc/man/man3/tqdomnode.3qt')
-rw-r--r-- | doc/man/man3/tqdomnode.3qt | 382 |
1 files changed, 191 insertions, 191 deletions
diff --git a/doc/man/man3/tqdomnode.3qt b/doc/man/man3/tqdomnode.3qt index c95912c10..4b9db6309 100644 --- a/doc/man/man3/tqdomnode.3qt +++ b/doc/man/man3/tqdomnode.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDomNode 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDomNode 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,13 +7,13 @@ .ad l .nh .SH NAME -QDomNode \- The base class for all the nodes in a DOM tree +TQDomNode \- The base class for all the nodes in a DOM tree .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqdom.h>\fR +\fC#include <tqdom.h>\fR .PP -Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacterData, QDomAttr, QDomElement, QDomNotation, QDomEntity, QDomEntityReference, and QDomProcessingInstruction. +Inherited by TQDomDocumentType, TQDomDocument, TQDomDocumentFragment, TQDomCharacterData, TQDomAttr, TQDomElement, TQDomNotation, TQDomEntity, TQDomEntityReference, and TQDomProcessingInstruction. .PP .SS "Public Members" .in +1c @@ -21,43 +21,43 @@ Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacter .BI "enum \fBNodeType\fR { ElementNode = 1, AttributeNode = 2, TextNode = 3, CDATASectionNode = 4, EntityReferenceNode = 5, EntityNode = 6, ProcessingInstructionNode = 7, CommentNode = 8, DocumentNode = 9, DocumentTypeNode = 10, DocumentFragmentNode = 11, NotationNode = 12, BaseNode = 21, CharacterDataNode = 22 }" .br .ti -1c -.BI "\fBQDomNode\fR ()" +.BI "\fBTQDomNode\fR ()" .br .ti -1c -.BI "\fBQDomNode\fR ( const QDomNode & n )" +.BI "\fBTQDomNode\fR ( const TQDomNode & n )" .br .ti -1c -.BI "QDomNode & \fBoperator=\fR ( const QDomNode & n )" +.BI "TQDomNode & \fBoperator=\fR ( const TQDomNode & n )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QDomNode & n ) const" +.BI "bool \fBoperator==\fR ( const TQDomNode & n ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QDomNode & n ) const" +.BI "bool \fBoperator!=\fR ( const TQDomNode & n ) const" .br .ti -1c -.BI "virtual \fB~QDomNode\fR ()" +.BI "virtual \fB~TQDomNode\fR ()" .br .ti -1c -.BI "virtual QDomNode \fBinsertBefore\fR ( const QDomNode & newChild, const QDomNode & refChild )" +.BI "virtual TQDomNode \fBinsertBefore\fR ( const TQDomNode & newChild, const TQDomNode & refChild )" .br .ti -1c -.BI "virtual QDomNode \fBinsertAfter\fR ( const QDomNode & newChild, const QDomNode & refChild )" +.BI "virtual TQDomNode \fBinsertAfter\fR ( const TQDomNode & newChild, const TQDomNode & refChild )" .br .ti -1c -.BI "virtual QDomNode \fBreplaceChild\fR ( const QDomNode & newChild, const QDomNode & oldChild )" +.BI "virtual TQDomNode \fBreplaceChild\fR ( const TQDomNode & newChild, const TQDomNode & oldChild )" .br .ti -1c -.BI "virtual QDomNode \fBremoveChild\fR ( const QDomNode & oldChild )" +.BI "virtual TQDomNode \fBremoveChild\fR ( const TQDomNode & oldChild )" .br .ti -1c -.BI "virtual QDomNode \fBappendChild\fR ( const QDomNode & newChild )" +.BI "virtual TQDomNode \fBappendChild\fR ( const TQDomNode & newChild )" .br .ti -1c .BI "virtual bool \fBhasChildNodes\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBcloneNode\fR ( bool deep = TRUE ) const" +.BI "virtual TQDomNode \fBcloneNode\fR ( bool deep = TRUE ) const" .br .ti -1c .BI "virtual void \fBnormalize\fR ()" @@ -69,31 +69,31 @@ Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacter .BI "virtual TQString \fBnodeName\fR () const" .br .ti -1c -.BI "virtual QDomNode::NodeType \fBnodeType\fR () const" +.BI "virtual TQDomNode::NodeType \fBnodeType\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBparentNode\fR () const" +.BI "virtual TQDomNode \fBparentNode\fR () const" .br .ti -1c -.BI "virtual QDomNodeList \fBchildNodes\fR () const" +.BI "virtual TQDomNodeList \fBchildNodes\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBfirstChild\fR () const" +.BI "virtual TQDomNode \fBfirstChild\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBlastChild\fR () const" +.BI "virtual TQDomNode \fBlastChild\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBpreviousSibling\fR () const" +.BI "virtual TQDomNode \fBpreviousSibling\fR () const" .br .ti -1c -.BI "virtual QDomNode \fBnextSibling\fR () const" +.BI "virtual TQDomNode \fBnextSibling\fR () const" .br .ti -1c -.BI "virtual QDomNamedNodeMap \fBattributes\fR () const" +.BI "virtual TQDomNamedNodeMap \fBattributes\fR () const" .br .ti -1c -.BI "virtual QDomDocument \fBownerDocument\fR () const" +.BI "virtual TQDomDocument \fBownerDocument\fR () const" .br .ti -1c .BI "virtual TQString \fBnamespaceURI\fR () const" @@ -156,7 +156,7 @@ Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacter .BI "virtual bool \fBisComment\fR () const" .br .ti -1c -.BI "QDomNode \fBnamedItem\fR ( const TQString & name ) const" +.BI "TQDomNode \fBnamedItem\fR ( const TQString & name ) const" .br .ti -1c .BI "bool \fBisNull\fR () const" @@ -165,43 +165,43 @@ Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacter .BI "void \fBclear\fR ()" .br .ti -1c -.BI "QDomAttr \fBtoAttr\fR ()" +.BI "TQDomAttr \fBtoAttr\fR ()" .br .ti -1c -.BI "QDomCDATASection \fBtoCDATASection\fR ()" +.BI "TQDomCDATASection \fBtoCDATASection\fR ()" .br .ti -1c -.BI "QDomDocumentFragment \fBtoDocumentFragment\fR ()" +.BI "TQDomDocumentFragment \fBtoDocumentFragment\fR ()" .br .ti -1c -.BI "QDomDocument \fBtoDocument\fR ()" +.BI "TQDomDocument \fBtoDocument\fR ()" .br .ti -1c -.BI "QDomDocumentType \fBtoDocumentType\fR ()" +.BI "TQDomDocumentType \fBtoDocumentType\fR ()" .br .ti -1c -.BI "QDomElement \fBtoElement\fR ()" +.BI "TQDomElement \fBtoElement\fR ()" .br .ti -1c -.BI "QDomEntityReference \fBtoEntityReference\fR ()" +.BI "TQDomEntityReference \fBtoEntityReference\fR ()" .br .ti -1c -.BI "QDomText \fBtoText\fR ()" +.BI "TQDomText \fBtoText\fR ()" .br .ti -1c -.BI "QDomEntity \fBtoEntity\fR ()" +.BI "TQDomEntity \fBtoEntity\fR ()" .br .ti -1c -.BI "QDomNotation \fBtoNotation\fR ()" +.BI "TQDomNotation \fBtoNotation\fR ()" .br .ti -1c -.BI "QDomProcessingInstruction \fBtoProcessingInstruction\fR ()" +.BI "TQDomProcessingInstruction \fBtoProcessingInstruction\fR ()" .br .ti -1c -.BI "QDomCharacterData \fBtoCharacterData\fR ()" +.BI "TQDomCharacterData \fBtoCharacterData\fR ()" .br .ti -1c -.BI "QDomComment \fBtoComment\fR ()" +.BI "TQDomComment \fBtoComment\fR ()" .br .ti -1c .BI "void \fBsave\fR ( QTextStream & str, int indent ) const" @@ -210,23 +210,23 @@ Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacter .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( QTextStream & str, const QDomNode & node )" +.BI "QTextStream & \fBoperator<<\fR ( QTextStream & str, const TQDomNode & node )" .br .in -1c .SH DESCRIPTION -The QDomNode class is the base class for all the nodes in a DOM tree. +The TQDomNode class is the base class for all the nodes in a DOM tree. .PP -Many functions in the DOM return a QDomNode. +Many functions in the DOM return a TQDomNode. .PP You can find out the type of a node using isAttr(), isCDATASection(), isDocumentFragment(), isDocument(), isDocumentType(), isElement(), isEntityReference(), isText(), isEntity(), isNotation(), isProcessingInstruction(), isCharacterData() and isComment(). .PP -A QDomNode can be converted into one of its subclasses using toAttr(), toCDATASection(), toDocumentFragment(), toDocument(), toDocumentType(), toElement(), toEntityReference(), toText(), toEntity(), toNotation(), toProcessingInstruction(), toCharacterData() or toComment(). You can convert a node to a null node with clear(). +A TQDomNode can be converted into one of its subclasses using toAttr(), toCDATASection(), toDocumentFragment(), toDocument(), toDocumentType(), toElement(), toEntityReference(), toText(), toEntity(), toNotation(), toProcessingInstruction(), toCharacterData() or toComment(). You can convert a node to a null node with clear(). .PP -Copies of the QDomNode class share their data using explicit sharing. This means that modifying one node will change all copies. This is especially useful in combination with functions which return a QDomNode, e.g. firstChild(). You can make an independent (deep) copy of the node with cloneNode(). +Copies of the TQDomNode class share their data using explicit sharing. This means that modifying one node will change all copies. This is especially useful in combination with functions which return a TQDomNode, e.g. firstChild(). You can make an independent (deep) copy of the node with cloneNode(). .PP Nodes are inserted with insertBefore(), insertAfter() or appendChild(). You can replace one node with another using replaceChild() and remove a node with removeChild(). .PP -To traverse nodes use firstChild() to get a node's first child (if any), and nextSibling() to traverse. QDomNode also provides lastChild(), previousSibling() and parentNode(). To find the first child node with a particular node name use namedItem(). +To traverse nodes use firstChild() to get a node's first child (if any), and nextSibling() to traverse. TQDomNode also provides lastChild(), previousSibling() and parentNode(). To find the first child node with a particular node name use namedItem(). .PP To find out if a node has children use hasChildNodes() and to get a list of all of a node's children use childNodes(). .PP @@ -234,11 +234,11 @@ The node's name and value (the meaning of which varies depending on its type) is .PP The document to which the node belongs is returned by ownerDocument(). .PP -Adjacent QDomText nodes can be merged into a single node with normalize(). +Adjacent TQDomText nodes can be merged into a single node with normalize(). .PP -QDomElement nodes have attributes which can be retrieved with attributes(). +TQDomElement nodes have attributes which can be retrieved with attributes(). .PP -QDomElement and QDomAttr nodes can have namespaces which can be retrieved with namespaceURI(). Their local name is retrieved with localName(), and their prefix with prefix(). The prefix can be set with setPrefix(). +TQDomElement and TQDomAttr nodes can have namespaces which can be retrieved with namespaceURI(). Their local name is retrieved with localName(), and their prefix with prefix(). The prefix can be set with setPrefix(). .PP You can write the XML representation of the node to a text stream with save(). .PP @@ -246,17 +246,17 @@ The following example looks for the first element in an XML document and prints .PP .nf .br - QDomDocument d; + TQDomDocument d; .br d.setContent( someXML ); .br - QDomNode n = d.firstChild(); + TQDomNode n = d.firstChild(); .br while ( !n.isNull() ) { .br if ( n.isElement() ) { .br - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); .br cout << "Element name: " << e.tagName() << endl; .br @@ -270,69 +270,69 @@ The following example looks for the first element in an XML document and prints .br .fi .PP -For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the QDomDocument documentation. +For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the TQDomDocument documentation. .PP See also XML. .SS "Member Type Documentation" -.SH "QDomNode::NodeType" +.SH "TQDomNode::NodeType" This enum defines the type of the node: .TP -\fCQDomNode::ElementNode\fR +\fCTQDomNode::ElementNode\fR .TP -\fCQDomNode::AttributeNode\fR +\fCTQDomNode::AttributeNode\fR .TP -\fCQDomNode::TextNode\fR +\fCTQDomNode::TextNode\fR .TP -\fCQDomNode::CDATASectionNode\fR +\fCTQDomNode::CDATASectionNode\fR .TP -\fCQDomNode::EntityReferenceNode\fR +\fCTQDomNode::EntityReferenceNode\fR .TP -\fCQDomNode::EntityNode\fR +\fCTQDomNode::EntityNode\fR .TP -\fCQDomNode::ProcessingInstructionNode\fR +\fCTQDomNode::ProcessingInstructionNode\fR .TP -\fCQDomNode::CommentNode\fR +\fCTQDomNode::CommentNode\fR .TP -\fCQDomNode::DocumentNode\fR +\fCTQDomNode::DocumentNode\fR .TP -\fCQDomNode::DocumentTypeNode\fR +\fCTQDomNode::DocumentTypeNode\fR .TP -\fCQDomNode::DocumentFragmentNode\fR +\fCTQDomNode::DocumentFragmentNode\fR .TP -\fCQDomNode::NotationNode\fR +\fCTQDomNode::NotationNode\fR .TP -\fCQDomNode::BaseNode\fR - A QDomNode object, i.e. not a QDomNode subclass. +\fCTQDomNode::BaseNode\fR - A TQDomNode object, i.e. not a TQDomNode subclass. .TP -\fCQDomNode::CharacterDataNode\fR +\fCTQDomNode::CharacterDataNode\fR .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDomNode::QDomNode ()" +.SH "TQDomNode::TQDomNode ()" Constructs a null node. -.SH "QDomNode::QDomNode ( const QDomNode & n )" +.SH "TQDomNode::TQDomNode ( const TQDomNode & n )" Constructs a copy of \fIn\fR. .PP The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode(). -.SH "QDomNode::~QDomNode ()\fC [virtual]\fR" +.SH "TQDomNode::~TQDomNode ()\fC [virtual]\fR" Destroys the object and frees its resources. -.SH "QDomNode QDomNode::appendChild ( const QDomNode & newChild )\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::appendChild ( const TQDomNode & newChild )\fC [virtual]\fR" Appends \fInewChild\fR as the node's last child. .PP If \fInewChild\fR is the child of another node, it is reparented to this node. If \fInewChild\fR is a child of this node, then its position in the list of children is changed. .PP -If \fInewChild\fR is a QDomDocumentFragment, then the children of the fragment are removed from the fragment and appended. +If \fInewChild\fR is a TQDomDocumentFragment, then the children of the fragment are removed from the fragment and appended. .PP Returns a new reference to \fInewChild\fR. .PP See also insertBefore(), insertAfter(), replaceChild(), and removeChild(). -.SH "QDomNamedNodeMap QDomNode::attributes () const\fC [virtual]\fR" -Returns a named node map of all attributes. Attributes are only provided for QDomElements. +.SH "TQDomNamedNodeMap TQDomNode::attributes () const\fC [virtual]\fR" +Returns a named node map of all attributes. Attributes are only provided for TQDomElements. .PP -Changing the attributes in the map will also change the attributes of this QDomNode. +Changing the attributes in the map will also change the attributes of this TQDomNode. .PP -Reimplemented in QDomElement. -.SH "QDomNodeList QDomNode::childNodes () const\fC [virtual]\fR" +Reimplemented in TQDomElement. +.SH "TQDomNodeList TQDomNode::childNodes () const\fC [virtual]\fR" Returns a list of all direct child nodes. .PP -Most often you will call this function on a QDomElement object. +Most often you will call this function on a TQDomElement object. .PP For example, if the XML document looks like this: .PP @@ -352,183 +352,183 @@ Then the list of child nodes for the "body"-element will contain the node create The nodes in the list are not copied; so changing the nodes in the list will also change the children of this node. .PP See also firstChild() and lastChild(). -.SH "void QDomNode::clear ()" +.SH "void TQDomNode::clear ()" Converts the node into a null node; if it was not a null node before, its type and contents are deleted. .PP See also isNull(). -.SH "QDomNode QDomNode::cloneNode ( bool deep = TRUE ) const\fC [virtual]\fR" -Creates a deep (not shallow) copy of the QDomNode. +.SH "TQDomNode TQDomNode::cloneNode ( bool deep = TRUE ) const\fC [virtual]\fR" +Creates a deep (not shallow) copy of the TQDomNode. .PP If \fIdeep\fR is TRUE, then the cloning is done recursively which means that all the node's children are deep copied too. If \fIdeep\fR is FALSE only the node itself is copied and the copy will have no child nodes. -.SH "QDomNode QDomNode::firstChild () const\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::firstChild () const\fC [virtual]\fR" Returns the first child of the node. If there is no child node, a null node is returned. Changing the returned node will also change the node in the document tree. .PP See also lastChild() and childNodes(). .PP Example: xml/outliner/outlinetree.cpp. -.SH "bool QDomNode::hasAttributes () const\fC [virtual]\fR" +.SH "bool TQDomNode::hasAttributes () const\fC [virtual]\fR" Returns TRUE if the node has attributes; otherwise returns FALSE. .PP See also attributes(). -.SH "bool QDomNode::hasChildNodes () const\fC [virtual]\fR" +.SH "bool TQDomNode::hasChildNodes () const\fC [virtual]\fR" Returns TRUE if the node has one or more children; otherwise returns FALSE. -.SH "QDomNode QDomNode::insertAfter ( const QDomNode & newChild, const QDomNode & refChild )\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::insertAfter ( const TQDomNode & newChild, const TQDomNode & refChild )\fC [virtual]\fR" Inserts the node \fInewChild\fR after the child node \fIrefChild\fR. \fIrefChild\fR must be a direct child of this node. If \fIrefChild\fR is null then \fInewChild\fR is appended as this node's last child. .PP If \fInewChild\fR is the child of another node, it is reparented to this node. If \fInewChild\fR is a child of this node, then its position in the list of children is changed. .PP -If \fInewChild\fR is a QDomDocumentFragment, then the children of the fragment are removed from the fragment and inserted after \fIrefChild\fR. +If \fInewChild\fR is a TQDomDocumentFragment, then the children of the fragment are removed from the fragment and inserted after \fIrefChild\fR. .PP Returns a new reference to \fInewChild\fR on success or a null node on failure. .PP See also insertBefore(), replaceChild(), removeChild(), and appendChild(). -.SH "QDomNode QDomNode::insertBefore ( const QDomNode & newChild, const QDomNode & refChild )\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::insertBefore ( const TQDomNode & newChild, const TQDomNode & refChild )\fC [virtual]\fR" Inserts the node \fInewChild\fR before the child node \fIrefChild\fR. \fIrefChild\fR must be a direct child of this node. If \fIrefChild\fR is null then \fInewChild\fR is inserted as the node's first child. .PP If \fInewChild\fR is the child of another node, it is reparented to this node. If \fInewChild\fR is a child of this node, then its position in the list of children is changed. .PP -If \fInewChild\fR is a QDomDocumentFragment, then the children of the fragment are removed from the fragment and inserted before \fIrefChild\fR. +If \fInewChild\fR is a TQDomDocumentFragment, then the children of the fragment are removed from the fragment and inserted before \fIrefChild\fR. .PP Returns a new reference to \fInewChild\fR on success or a null node on failure. .PP See also insertAfter(), replaceChild(), removeChild(), and appendChild(). -.SH "bool QDomNode::isAttr () const\fC [virtual]\fR" +.SH "bool TQDomNode::isAttr () const\fC [virtual]\fR" Returns TRUE if the node is an attribute; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomAttribute; you can get the QDomAttribute with toAttribute(). +If this function returns TRUE, it does not imply that this object is a TQDomAttribute; you can get the TQDomAttribute with toAttribute(). .PP See also toAttr(). .PP -Reimplemented in QDomAttr. -.SH "bool QDomNode::isCDATASection () const\fC [virtual]\fR" +Reimplemented in TQDomAttr. +.SH "bool TQDomNode::isCDATASection () const\fC [virtual]\fR" Returns TRUE if the node is a CDATA section; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomCDATASection; you can get the QDomCDATASection with toCDATASection(). +If this function returns TRUE, it does not imply that this object is a TQDomCDATASection; you can get the TQDomCDATASection with toCDATASection(). .PP See also toCDATASection(). .PP -Reimplemented in QDomCDATASection. -.SH "bool QDomNode::isCharacterData () const\fC [virtual]\fR" +Reimplemented in TQDomCDATASection. +.SH "bool TQDomNode::isCharacterData () const\fC [virtual]\fR" Returns TRUE if the node is a character data node; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomCharacterData; you can get the QDomCharacterData with toCharacterData(). +If this function returns TRUE, it does not imply that this object is a TQDomCharacterData; you can get the TQDomCharacterData with toCharacterData(). .PP See also toCharacterData(). .PP -Reimplemented in QDomCharacterData. -.SH "bool QDomNode::isComment () const\fC [virtual]\fR" +Reimplemented in TQDomCharacterData. +.SH "bool TQDomNode::isComment () const\fC [virtual]\fR" Returns TRUE if the node is a comment; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomComment; you can get the QDomComment with toComment(). +If this function returns TRUE, it does not imply that this object is a TQDomComment; you can get the TQDomComment with toComment(). .PP See also toComment(). .PP -Reimplemented in QDomComment. -.SH "bool QDomNode::isDocument () const\fC [virtual]\fR" +Reimplemented in TQDomComment. +.SH "bool TQDomNode::isDocument () const\fC [virtual]\fR" Returns TRUE if the node is a document; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomDocument; you can get the QDomDocument with toDocument(). +If this function returns TRUE, it does not imply that this object is a TQDomDocument; you can get the TQDomDocument with toDocument(). .PP See also toDocument(). .PP -Reimplemented in QDomDocument. -.SH "bool QDomNode::isDocumentFragment () const\fC [virtual]\fR" +Reimplemented in TQDomDocument. +.SH "bool TQDomNode::isDocumentFragment () const\fC [virtual]\fR" Returns TRUE if the node is a document fragment; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomDocumentFragment; you can get the QDomDocumentFragment with toDocumentFragment(). +If this function returns TRUE, it does not imply that this object is a TQDomDocumentFragment; you can get the TQDomDocumentFragment with toDocumentFragment(). .PP See also toDocumentFragment(). .PP -Reimplemented in QDomDocumentFragment. -.SH "bool QDomNode::isDocumentType () const\fC [virtual]\fR" +Reimplemented in TQDomDocumentFragment. +.SH "bool TQDomNode::isDocumentType () const\fC [virtual]\fR" Returns TRUE if the node is a document type; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomDocumentType; you can get the QDomDocumentType with toDocumentType(). +If this function returns TRUE, it does not imply that this object is a TQDomDocumentType; you can get the TQDomDocumentType with toDocumentType(). .PP See also toDocumentType(). .PP -Reimplemented in QDomDocumentType. -.SH "bool QDomNode::isElement () const\fC [virtual]\fR" +Reimplemented in TQDomDocumentType. +.SH "bool TQDomNode::isElement () const\fC [virtual]\fR" Returns TRUE if the node is an element; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomElement; you can get the QDomElement with toElement(). +If this function returns TRUE, it does not imply that this object is a TQDomElement; you can get the TQDomElement with toElement(). .PP See also toElement(). .PP Example: xml/outliner/outlinetree.cpp. .PP -Reimplemented in QDomElement. -.SH "bool QDomNode::isEntity () const\fC [virtual]\fR" +Reimplemented in TQDomElement. +.SH "bool TQDomNode::isEntity () const\fC [virtual]\fR" Returns TRUE if the node is an entity; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomEntity; you can get the QDomEntity with toEntity(). +If this function returns TRUE, it does not imply that this object is a TQDomEntity; you can get the TQDomEntity with toEntity(). .PP See also toEntity(). .PP -Reimplemented in QDomEntity. -.SH "bool QDomNode::isEntityReference () const\fC [virtual]\fR" +Reimplemented in TQDomEntity. +.SH "bool TQDomNode::isEntityReference () const\fC [virtual]\fR" Returns TRUE if the node is an entity reference; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomEntityReference; you can get the QDomEntityReference with toEntityReference(). +If this function returns TRUE, it does not imply that this object is a TQDomEntityReference; you can get the TQDomEntityReference with toEntityReference(). .PP See also toEntityReference(). .PP -Reimplemented in QDomEntityReference. -.SH "bool QDomNode::isNotation () const\fC [virtual]\fR" +Reimplemented in TQDomEntityReference. +.SH "bool TQDomNode::isNotation () const\fC [virtual]\fR" Returns TRUE if the node is a notation; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomNotation; you can get the QDomNotation with toNotation(). +If this function returns TRUE, it does not imply that this object is a TQDomNotation; you can get the TQDomNotation with toNotation(). .PP See also toNotation(). .PP -Reimplemented in QDomNotation. -.SH "bool QDomNode::isNull () const" +Reimplemented in TQDomNotation. +.SH "bool TQDomNode::isNull () const" Returns TRUE if this node is null (i.e. if it has no type or contents); otherwise returns FALSE. .PP Example: xml/outliner/outlinetree.cpp. -.SH "bool QDomNode::isProcessingInstruction () const\fC [virtual]\fR" +.SH "bool TQDomNode::isProcessingInstruction () const\fC [virtual]\fR" Returns TRUE if the node is a processing instruction; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomProcessingInstruction; you can get the QProcessingInstruction with toProcessingInstruction(). +If this function returns TRUE, it does not imply that this object is a TQDomProcessingInstruction; you can get the QProcessingInstruction with toProcessingInstruction(). .PP See also toProcessingInstruction(). .PP -Reimplemented in QDomProcessingInstruction. -.SH "bool QDomNode::isSupported ( const TQString & feature, const TQString & version ) const\fC [virtual]\fR" +Reimplemented in TQDomProcessingInstruction. +.SH "bool TQDomNode::isSupported ( const TQString & feature, const TQString & version ) const\fC [virtual]\fR" Returns TRUE if the DOM implementation implements the feature \fIfeature\fR and this feature is supported by this node in the version \fIversion\fR; otherwise returns FALSE. .PP -See also QDomImplementation::hasFeature(). -.SH "bool QDomNode::isText () const\fC [virtual]\fR" +See also TQDomImplementation::hasFeature(). +.SH "bool TQDomNode::isText () const\fC [virtual]\fR" Returns TRUE if the node is a text node; otherwise returns FALSE. .PP -If this function returns TRUE, it does not imply that this object is a QDomText; you can get the QDomText with toText(). +If this function returns TRUE, it does not imply that this object is a TQDomText; you can get the TQDomText with toText(). .PP See also toText(). .PP -Reimplemented in QDomText. -.SH "QDomNode QDomNode::lastChild () const\fC [virtual]\fR" +Reimplemented in TQDomText. +.SH "TQDomNode TQDomNode::lastChild () const\fC [virtual]\fR" Returns the last child of the node. If there is no child node, a null node is returned. Changing the returned node will also change the node in the document tree. .PP See also firstChild() and childNodes(). -.SH "TQString QDomNode::localName () const\fC [virtual]\fR" +.SH "TQString TQDomNode::localName () const\fC [virtual]\fR" If the node uses namespaces, this function returns the local name of the node; otherwise it returns TQString::null. .PP Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace must have been specified at creation time; it is not possible to add a namespace afterwards. .PP -See also prefix(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS(). -.SH "QDomNode QDomNode::namedItem ( const TQString & name ) const" +See also prefix(), namespaceURI(), TQDomDocument::createElementNS(), and TQDomDocument::createAttributeNS(). +.SH "TQDomNode TQDomNode::namedItem ( const TQString & name ) const" Returns the first direct child node for which nodeName() equals \fIname\fR. .PP If no such direct child exists, a null node is returned. .PP See also nodeName(). -.SH "TQString QDomNode::namespaceURI () const\fC [virtual]\fR" +.SH "TQString TQDomNode::namespaceURI () const\fC [virtual]\fR" Returns the namespace URI of this node or TQString::null if the node has no namespace URI. .PP Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace URI must be specified at creation time and cannot be changed later. .PP -See also prefix(), localName(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS(). -.SH "QDomNode QDomNode::nextSibling () const\fC [virtual]\fR" +See also prefix(), localName(), TQDomDocument::createElementNS(), and TQDomDocument::createAttributeNS(). +.SH "TQDomNode TQDomNode::nextSibling () const\fC [virtual]\fR" Returns the next sibling in the document tree. Changing the returned node will also change the node in the document tree. .PP If you have XML like this: @@ -542,17 +542,17 @@ If you have XML like this: <h2>Next heading</h2> .br .fi -and this QDomNode represents the <p> tag, nextSibling() will return the node representing the <h2> tag. +and this TQDomNode represents the <p> tag, nextSibling() will return the node representing the <h2> tag. .PP See also previousSibling(). .PP Example: xml/outliner/outlinetree.cpp. -.SH "TQString QDomNode::nodeName () const\fC [virtual]\fR" +.SH "TQString TQDomNode::nodeName () const\fC [virtual]\fR" Returns the name of the node. .PP The meaning of the name depends on the subclass: <center>.nf .TS -l - l. Name Meaning QDomAttr The name of the attribute QDomCDATASection The string "#cdata-section" QDomComment The string "#comment" QDomDocument The string "#document" QDomDocumentFragment The string "#document-fragment" QDomDocumentType The name of the document type QDomElement The tag name QDomEntity The name of the entity QDomEntityReference The name of the referenced entity QDomNotation The name of the notation QDomProcessingInstruction The target of the processing instruction QDomText +l - l. Name Meaning TQDomAttr The name of the attribute TQDomCDATASection The string "#cdata-section" TQDomComment The string "#comment" TQDomDocument The string "#document" TQDomDocumentFragment The string "#document-fragment" TQDomDocumentType The name of the document type TQDomElement The tag name TQDomEntity The name of the entity TQDomEntityReference The name of the referenced entity TQDomNotation The name of the notation TQDomProcessingInstruction The target of the processing instruction TQDomText .TE .fi </center> @@ -560,18 +560,18 @@ l - l. Name Meaning QDomAttr The name of the attribute QDomCDATASection The stri See also nodeValue(). .PP Example: xml/outliner/outlinetree.cpp. -.SH "QDomNode::NodeType QDomNode::nodeType () const\fC [virtual]\fR" +.SH "TQDomNode::NodeType TQDomNode::nodeType () const\fC [virtual]\fR" Returns the type of the node. .PP See also toAttr(), toCDATASection(), toDocumentFragment(), toDocument(), toDocumentType(), toElement(), toEntityReference(), toText(), toEntity(), toNotation(), toProcessingInstruction(), toCharacterData(), and toComment(). .PP -Reimplemented in QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacterData, QDomAttr, QDomElement, QDomNotation, QDomEntity, QDomEntityReference, and QDomProcessingInstruction. -.SH "TQString QDomNode::nodeValue () const\fC [virtual]\fR" +Reimplemented in TQDomDocumentType, TQDomDocument, TQDomDocumentFragment, TQDomCharacterData, TQDomAttr, TQDomElement, TQDomNotation, TQDomEntity, TQDomEntityReference, and TQDomProcessingInstruction. +.SH "TQString TQDomNode::nodeValue () const\fC [virtual]\fR" Returns the value of the node. .PP The meaning of the value depends on the subclass: <center>.nf .TS -l - l. Name Meaning QDomAttr The attribute value QDomCDATASection The content of the CDATA section QDomComment The comment QDomProcessingInstruction The data of the processing intruction QDomText +l - l. Name Meaning TQDomAttr The attribute value TQDomCDATASection The content of the CDATA section TQDomComment The comment TQDomProcessingInstruction The data of the processing intruction TQDomText .TE .fi </center> @@ -581,29 +581,29 @@ All the other subclasses do not have a node value and will return TQString::null See also setNodeValue() and nodeName(). .PP Example: xml/outliner/outlinetree.cpp. -.SH "void QDomNode::normalize ()\fC [virtual]\fR" -Calling normalize() on an element converts all its children into a standard form. This means that adjacent QDomText objects will be merged into a single text object (QDomCDATASection nodes are not merged). -.SH "bool QDomNode::operator!= ( const QDomNode & n ) const" +.SH "void TQDomNode::normalize ()\fC [virtual]\fR" +Calling normalize() on an element converts all its children into a standard form. This means that adjacent TQDomText objects will be merged into a single text object (TQDomCDATASection nodes are not merged). +.SH "bool TQDomNode::operator!= ( const TQDomNode & n ) const" Returns TRUE if \fIn\fR and this DOM node are not equal; otherwise returns FALSE. -.SH "QDomNode & QDomNode::operator= ( const QDomNode & n )" +.SH "TQDomNode & TQDomNode::operator= ( const TQDomNode & n )" Assigns a copy of \fIn\fR to this DOM node. .PP The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode(). -.SH "bool QDomNode::operator== ( const QDomNode & n ) const" +.SH "bool TQDomNode::operator== ( const TQDomNode & n ) const" Returns TRUE if \fIn\fR and this DOM node are equal; otherwise returns FALSE. -.SH "QDomDocument QDomNode::ownerDocument () const\fC [virtual]\fR" +.SH "TQDomDocument TQDomNode::ownerDocument () const\fC [virtual]\fR" Returns the document to which this node belongs. -.SH "QDomNode QDomNode::parentNode () const\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::parentNode () const\fC [virtual]\fR" Returns the parent node. If this node has no parent, a null node is returned (i.e. a node for which isNull() returns TRUE). -.SH "TQString QDomNode::prefix () const\fC [virtual]\fR" +.SH "TQString TQDomNode::prefix () const\fC [virtual]\fR" Returns the namespace prefix of the node or TQString::null if the node has no namespace prefix. .PP Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace prefix must be specified at creation time. If a node was created with a namespace prefix, you can change it later with setPrefix(). .PP -If you create an element or attribute with QDomDocument::createElement() or QDomDocument::createAttribute(), the prefix will be TQString::null. If you use QDomDocument::createElementNS() or QDomDocument::createAttributeNS() instead, the prefix will not be TQString::null; but it might be an empty string if the name does not have a prefix. +If you create an element or attribute with TQDomDocument::createElement() or TQDomDocument::createAttribute(), the prefix will be TQString::null. If you use TQDomDocument::createElementNS() or TQDomDocument::createAttributeNS() instead, the prefix will not be TQString::null; but it might be an empty string if the name does not have a prefix. .PP -See also setPrefix(), localName(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS(). -.SH "QDomNode QDomNode::previousSibling () const\fC [virtual]\fR" +See also setPrefix(), localName(), namespaceURI(), TQDomDocument::createElementNS(), and TQDomDocument::createAttributeNS(). +.SH "TQDomNode TQDomNode::previousSibling () const\fC [virtual]\fR" Returns the previous sibling in the document tree. Changing the returned node will also change the node in the document tree. .PP For example, if you have XML like this: @@ -617,98 +617,98 @@ For example, if you have XML like this: <h2>Next heading</h2> .br .fi -and this QDomNode represents the <p> tag, previousSibling() will return the node representing the <h1> tag. +and this TQDomNode represents the <p> tag, previousSibling() will return the node representing the <h1> tag. .PP See also nextSibling(). -.SH "QDomNode QDomNode::removeChild ( const QDomNode & oldChild )\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::removeChild ( const TQDomNode & oldChild )\fC [virtual]\fR" Removes \fIoldChild\fR from the list of children. \fIoldChild\fR must be a direct child of this node. .PP Returns a new reference to \fIoldChild\fR on success or a null node on failure. .PP See also insertBefore(), insertAfter(), replaceChild(), and appendChild(). -.SH "QDomNode QDomNode::replaceChild ( const QDomNode & newChild, const QDomNode & oldChild )\fC [virtual]\fR" +.SH "TQDomNode TQDomNode::replaceChild ( const TQDomNode & newChild, const TQDomNode & oldChild )\fC [virtual]\fR" Replaces \fIoldChild\fR with \fInewChild\fR. \fIoldChild\fR must be a direct child of this node. .PP If \fInewChild\fR is the child of another node, it is reparented to this node. If \fInewChild\fR is a child of this node, then its position in the list of children is changed. .PP -If \fInewChild\fR is a QDomDocumentFragment, then \fIoldChild\fR is replaced by all of the children of the fragment. +If \fInewChild\fR is a TQDomDocumentFragment, then \fIoldChild\fR is replaced by all of the children of the fragment. .PP Returns a new reference to \fIoldChild\fR on success or a null node an failure. .PP See also insertBefore(), insertAfter(), removeChild(), and appendChild(). -.SH "void QDomNode::save ( QTextStream & str, int indent ) const" +.SH "void TQDomNode::save ( QTextStream & str, int indent ) const" Writes the XML representation of the node and all its children to the stream \fIstr\fR. This function uses \fIindent\fR as the amount of space to indent the node. -.SH "void QDomNode::setNodeValue ( const TQString & v )\fC [virtual]\fR" +.SH "void TQDomNode::setNodeValue ( const TQString & v )\fC [virtual]\fR" Sets the node's value to \fIv\fR. .PP See also nodeValue(). -.SH "void QDomNode::setPrefix ( const TQString & pre )\fC [virtual]\fR" +.SH "void TQDomNode::setPrefix ( const TQString & pre )\fC [virtual]\fR" If the node has a namespace prefix, this function changes the namespace prefix of the node to \fIpre\fR. Otherwise this function does nothing. .PP Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace prefix must have be specified at creation time; it is not possible to add a namespace prefix afterwards. .PP -See also prefix(), localName(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS(). -.SH "QDomAttr QDomNode::toAttr ()" -Converts a QDomNode into a QDomAttr. If the node is not an attribute, the returned object will be null. +See also prefix(), localName(), namespaceURI(), TQDomDocument::createElementNS(), and TQDomDocument::createAttributeNS(). +.SH "TQDomAttr TQDomNode::toAttr ()" +Converts a TQDomNode into a TQDomAttr. If the node is not an attribute, the returned object will be null. .PP See also isAttr(). -.SH "QDomCDATASection QDomNode::toCDATASection ()" -Converts a QDomNode into a QDomCDATASection. If the node is not a CDATA section, the returned object will be null. +.SH "TQDomCDATASection TQDomNode::toCDATASection ()" +Converts a TQDomNode into a TQDomCDATASection. If the node is not a CDATA section, the returned object will be null. .PP See also isCDATASection(). -.SH "QDomCharacterData QDomNode::toCharacterData ()" -Converts a QDomNode into a QDomCharacterData. If the node is not a character data node the returned object will be null. +.SH "TQDomCharacterData TQDomNode::toCharacterData ()" +Converts a TQDomNode into a TQDomCharacterData. If the node is not a character data node the returned object will be null. .PP See also isCharacterData(). -.SH "QDomComment QDomNode::toComment ()" -Converts a QDomNode into a QDomComment. If the node is not a comment the returned object will be null. +.SH "TQDomComment TQDomNode::toComment ()" +Converts a TQDomNode into a TQDomComment. If the node is not a comment the returned object will be null. .PP See also isComment(). -.SH "QDomDocument QDomNode::toDocument ()" -Converts a QDomNode into a QDomDocument. If the node is not a document the returned object will be null. +.SH "TQDomDocument TQDomNode::toDocument ()" +Converts a TQDomNode into a TQDomDocument. If the node is not a document the returned object will be null. .PP See also isDocument(). -.SH "QDomDocumentFragment QDomNode::toDocumentFragment ()" -Converts a QDomNode into a QDomDocumentFragment. If the node is not a document fragment the returned object will be null. +.SH "TQDomDocumentFragment TQDomNode::toDocumentFragment ()" +Converts a TQDomNode into a TQDomDocumentFragment. If the node is not a document fragment the returned object will be null. .PP See also isDocumentFragment(). -.SH "QDomDocumentType QDomNode::toDocumentType ()" -Converts a QDomNode into a QDomDocumentType. If the node is not a document type the returned object will be null. +.SH "TQDomDocumentType TQDomNode::toDocumentType ()" +Converts a TQDomNode into a TQDomDocumentType. If the node is not a document type the returned object will be null. .PP See also isDocumentType(). -.SH "QDomElement QDomNode::toElement ()" -Converts a QDomNode into a QDomElement. If the node is not an element the returned object will be null. +.SH "TQDomElement TQDomNode::toElement ()" +Converts a TQDomNode into a TQDomElement. If the node is not an element the returned object will be null. .PP See also isElement(). .PP Example: xml/outliner/outlinetree.cpp. -.SH "QDomEntity QDomNode::toEntity ()" -Converts a QDomNode into a QDomEntity. If the node is not an entity the returned object will be null. +.SH "TQDomEntity TQDomNode::toEntity ()" +Converts a TQDomNode into a TQDomEntity. If the node is not an entity the returned object will be null. .PP See also isEntity(). -.SH "QDomEntityReference QDomNode::toEntityReference ()" -Converts a QDomNode into a QDomEntityReference. If the node is not an entity reference, the returned object will be null. +.SH "TQDomEntityReference TQDomNode::toEntityReference ()" +Converts a TQDomNode into a TQDomEntityReference. If the node is not an entity reference, the returned object will be null. .PP See also isEntityReference(). -.SH "QDomNotation QDomNode::toNotation ()" -Converts a QDomNode into a QDomNotation. If the node is not a notation the returned object will be null. +.SH "TQDomNotation TQDomNode::toNotation ()" +Converts a TQDomNode into a TQDomNotation. If the node is not a notation the returned object will be null. .PP See also isNotation(). -.SH "QDomProcessingInstruction QDomNode::toProcessingInstruction ()" -Converts a QDomNode into a QDomProcessingInstruction. If the node is not a processing instruction the returned object will be null. +.SH "TQDomProcessingInstruction TQDomNode::toProcessingInstruction ()" +Converts a TQDomNode into a TQDomProcessingInstruction. If the node is not a processing instruction the returned object will be null. .PP See also isProcessingInstruction(). -.SH "QDomText QDomNode::toText ()" -Converts a QDomNode into a QDomText. If the node is not a text, the returned object will be null. +.SH "TQDomText TQDomNode::toText ()" +Converts a TQDomNode into a TQDomText. If the node is not a text, the returned object will be null. .PP See also isText(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QTextStream & operator<< ( QTextStream & str, const QDomNode & node )" +.SH "QTextStream & operator<< ( QTextStream & str, const TQDomNode & node )" Writes the XML representation of the node \fInode\fR and all its children to the stream \fIstr\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qdomnode.html +.BR http://doc.trolltech.com/tqdomnode.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |