QDomNode(3qt)
β¨ QDomNode β¨
okay bestie, gather round, because we're about to talk about the literal backbone of DOM trees in Qt β QDomNode(3qt). yes that's the manual section, no I will not be normal about it π
πΈ NAME πΈ
QDomNode β the base class for all the nodes in a DOM tree. like, all of them. every single one. she's the mother of the whole tree, the main character, the blueprint. periodt. π
β¨ SYNOPSIS β¨
okay so first thing, and this is important:
All the functions in this class are reentrant when Qt is built with thread support.
(that </p> at the end? yeah it's just vibing there in the original, we love a little typo moment, no cap π«Ά)
#include <qdom.h>
Inherited by QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacterData, QDomAttr, QDomElement, QDomNotation, QDomEntity, QDomEntityReference, and QDomProcessingInstruction.
π Public Members π
enum NodeTypeβ{ 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 }QDomNode ()QDomNode ( const QDomNode & n )QDomNode & operator= ( const QDomNode & n )bool operator== ( const QDomNode & n ) constbool operator!= ( const QDomNode & n ) constvirtual ~QDomNode ()virtual QDomNode insertBefore ( const QDomNode & newChild, const QDomNode & refChild )virtual QDomNode insertAfter ( const QDomNode & newChild, const QDomNode & refChild )virtual QDomNode replaceChild ( const QDomNode & newChild, const QDomNode & oldChild )virtual QDomNode removeChild ( const QDomNode & oldChild )virtual QDomNode appendChild ( const QDomNode & newChild )virtual bool hasChildNodes () constvirtual QDomNode cloneNode ( bool deep = TRUE ) constvirtual void normalize ()virtual bool isSupported ( const QString & feature, const QString & version ) constvirtual QString nodeName () constvirtual QDomNode::NodeType nodeType () constvirtual QDomNode parentNode () constvirtual QDomNodeList childNodes () constvirtual QDomNode firstChild () constvirtual QDomNode lastChild () constvirtual QDomNode previousSibling () constvirtual QDomNode nextSibling () constvirtual QDomNamedNodeMap attributes () constvirtual QDomDocument ownerDocument () constvirtual QString namespaceURI () constvirtual QString localName () constvirtual bool hasAttributes () constvirtual QString nodeValue () constvirtual void setNodeValue ( const QString & v )virtual QString prefix () constvirtual void setPrefix ( const QString & pre )virtual bool isAttr () constvirtual bool isCDATASection () constvirtual bool isDocumentFragment () constvirtual bool isDocument () constvirtual bool isDocumentType () constvirtual bool isElement () constvirtual bool isEntityReference () constvirtual bool isText () constvirtual bool isEntity () constvirtual bool isNotation () constvirtual bool isProcessingInstruction () constvirtual bool isCharacterData () constvirtual bool isComment () constQDomNode namedItem ( const QString & name ) constbool isNull () constvoid clear ()QDomAttr toAttr ()QDomCDATASection toCDATASection ()QDomDocumentFragment toDocumentFragment ()QDomDocument toDocument ()QDomDocumentType toDocumentType ()QDomElement toElement ()QDomEntityReference toEntityReference ()QDomText toText ()QDomEntity toEntity ()QDomNotation toNotation ()QDomProcessingInstruction toProcessingInstruction ()QDomCharacterData toCharacterData ()QDomComment toComment ()void save ( QTextStream & str, int indent ) const
π RELATED FUNCTION DOCUMENTATION π
QTextStream & operator<< ( QTextStream & str, const QDomNode & node )
π DESCRIPTION π
So QDomNode is the base class for all the nodes in a DOM tree. she's literally the blueprint, the moment, the icon.
Many functions in the DOM return a QDomNode. it's just how it is bestie, she's everywhere.
You can find out the type of a node using isAttr(), isCDATASection(), isDocumentFragment(), isDocument(), isDocumentType(), isElement(), isEntityReference(), isText(), isEntity(), isNotation(), isProcessingInstruction(), isCharacterData() and isComment(). one for every vibe check π
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(). and you can convert a node to a null node with clear().
Copies of the QDomNode class share their data using explicit sharing. which means, and I cannot stress this enough, modifying one node will change all copies. yes fr fr, they're all connected, it's giving hive mind. 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(). π¦
Nodes are inserted with insertBefore(), insertAfter() or appendChild(). You can replace one node with another using replaceChild() and remove a node with removeChild().
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 find out if a node has children use hasChildNodes() and to get a list of all of a node's children use childNodes().
The node's name and value (the meaning of which varies depending on its type) is returned by nodeName() and nodeValue() respectively. The node's type is returned by nodeType(). The node's value can be set with setNodeValue().
The document to which the node belongs is returned by ownerDocument().
Adjacent QDomText nodes can be merged into a single node with normalize(). iconic behavior honestly.
QDomElement nodes have attributes which can be retrieved with attributes().
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().
You can write the XML representation of the node to a text stream with save().
The following example looks for the first element in an XML document and prints the names of all the elements that are its direct children. look at her go π₯Ή
QDomDocument d;
d.setContent( someXML );
QDomNode n = d.firstChild();
while ( !n.isNull() ) {
if ( n.isElement() ) {
QDomElement e = n.toElement();
cout << "Element name: " << e.tagName() << endl;
break;
}
n = n.nextSibling();
}
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.
See also XML.
π Member Type Documentation π
QDomNode::NodeType
This enum defines the type of the node:
QDomNode::ElementNodeQDomNode::AttributeNodeQDomNode::TextNodeQDomNode::CDATASectionNodeQDomNode::EntityReferenceNodeQDomNode::EntityNodeQDomNode::ProcessingInstructionNodeQDomNode::CommentNodeQDomNode::DocumentNodeQDomNode::DocumentTypeNodeQDomNode::DocumentFragmentNodeQDomNode::NotationNodeQDomNode::BaseNodeβ AQDomNodeobject, i.e. not aQDomNodesubclass.QDomNode::CharacterDataNode
π MEMBER FUNCTION DOCUMENTATION π
QDomNode::QDomNode ()
Constructs a null node. she's empty, she's fresh, she's full of potential β¨
QDomNode::QDomNode ( const QDomNode & n )
Constructs a copy of n.
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().
QDomNode::~QDomNode () [virtual]
Destroys the object and frees its resources. rip queen, you served well π«‘π
QDomNode QDomNode::appendChild ( const QDomNode & newChild ) [virtual]
Appends newChild as the node's last child.
If newChild is the child of another node, it is reparented to this node. If newChild is a child of this node, then its position in the list of children is changed.
If newChild is a QDomDocumentFragment, then the children of the fragment are removed from the fragment and appended.
Returns a new reference to newChild.
See also insertBefore(), insertAfter(), replaceChild(), and removeChild().
QDomNamedNodeMap QDomNode::attributes () const [virtual]
Returns a named node map of all attributes. Attributes are only provided for QDomElements.
Changing the attributes in the map will also change the attributes of this QDomNode. (sharing energy again, you know how she is π
)
Reimplemented in QDomElement.
QDomNodeList QDomNode::childNodes () const [virtual]
Returns a list of all direct child nodes.
Most often you will call this function on a QDomElement object.
For example, if the XML document looks like this:
<body>
<h1>Heading</h1>
<p>Hello <b>you</b></p>
</body>
Then the list of child nodes for the "body"-element will contain the node created by the <h1> tag and the node created by the <p> tag.
The nodes in the list are not copied; so changing the nodes in the list will also change the children of this node.
See also firstChild() and lastChild().
void QDomNode::clear ()
Converts the node into a null node; if it was not a null node before, its type and contents are deleted. she's gone, she's cleared, it's over bestie π
See also isNull().
QDomNode QDomNode::cloneNode ( bool deep = TRUE ) const [virtual]
Creates a deep (not shallow) copy of the QDomNode. finally, an independent queen π
If deep is TRUE, then the cloning is done recursively which means that all the node's children are deep copied too. If deep is FALSE only the node itself is copied and the copy will have no child nodes.
QDomNode QDomNode::firstChild () const [virtual]
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.
See also lastChild() and childNodes().
Example: xml/outliner/outlinetree.cpp.
bool QDomNode::hasAttributes () const [virtual]
Returns TRUE if the node has attributes; otherwise returns FALSE.
See also attributes().
bool QDomNode::hasChildNodes () const [virtual]
Returns TRUE if the node has one or more children; otherwise returns FALSE.
QDomNode QDomNode::insertAfter ( const QDomNode & newChild, const QDomNode & refChild ) [virtual]
Inserts the node newChild after the child node refChild. refChild must be a direct child of this node. If refChild is null then newChild is appended as this node's last child.
If newChild is the child of another node, it is reparented to this node. If newChild is a child of this node, then its position in the list of children is changed.
If newChild is a QDomDocumentFragment, then the children of the fragment are removed from the fragment and inserted after refChild.
Returns a new reference to newChild on success or a null node on failure.
See also insertBefore(), replaceChild(), removeChild(), and appendChild().
QDomNode QDomNode::insertBefore ( const QDomNode & newChild, const QDomNode & refChild ) [virtual]
okay so insertBefore() is giving "excuse me, coming through, I'm inserting myself right here" π
It slots newChild in before the child node refChild.
Real talk though: refChild has to be a direct child of this node, no exceptions. And if refChild is null? Then newChild gets plopped in as the node's first child. Cute, right?
Now the messy part π« If newChild is the child of another node, it gets reparented to this node. And if newChild is already a child of this node, then its position in the list of children is changed. Yes, it just moves. No drama.
And if newChild is a QDomDocumentFragment? Then the children of the fragment are removed from the fragment and inserted before refChild. The fragment gets emptied out, its babies get rehomed β¨
Returns a new reference to newChild on success, or a null node on failure π
See also insertAfter(), replaceChild(), removeChild(), and appendChild().
bool QDomNode::isAttr () const [virtual]
Returns TRUE if the node is an attribute; otherwise returns FALSE.
β οΈ heads up bestie: if this function returnsTRUE, it does not imply that this object is aQDomAttribute; you can get theQDomAttributewithtoAttribute().
See also toAttr().
Reimplemented in QDomAttr.
bool QDomNode::isCDATASection () const [virtual]
Returns TRUE if the node is a CDATA section; otherwise returns FALSE.
β οΈ if this returnsTRUE, it does not mean this object is aQDomCDATASectionβ you can grab theQDomCDATASectionwithtoCDATASection().
See also toCDATASection().
Reimplemented in QDomCDATASection.
bool QDomNode::isCharacterData () const [virtual]
Returns TRUE if the node is a character data node; otherwise returns FALSE.
β οΈ same deal:TRUEhere does not imply that this object is aQDomCharacterData; you can get theQDomCharacterDatawithtoCharacterData().
See also toCharacterData().
Reimplemented in QDomCharacterData.
bool QDomNode::isComment () const [virtual]
Returns TRUE if the node is a comment; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomCommentβ you can get theQDomCommentwithtoComment().
See also toComment().
Reimplemented in QDomComment.
bool QDomNode::isDocument () const [virtual]
Returns TRUE if the node is a document; otherwise returns FALSE.
β οΈTRUEhere does not imply this object is aQDomDocument; you can get theQDomDocumentwithtoDocument().
See also toDocument().
Reimplemented in QDomDocument.
bool QDomNode::isDocumentFragment () const [virtual]
Returns TRUE if the node is a document fragment; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomDocumentFragmentβ you can get theQDomDocumentFragmentwithtoDocumentFragment().
See also toDocumentFragment().
Reimplemented in QDomDocumentFragment.
bool QDomNode::isDocumentType () const [virtual]
Returns TRUE if the node is a document type; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomDocumentType; you can get theQDomDocumentTypewithtoDocumentType().
See also toDocumentType().
Reimplemented in QDomDocumentType.
bool QDomNode::isElement () const [virtual]
Returns TRUE if the node is an element; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomElementβ you can get theQDomElementwithtoElement().
See also toElement().
Example: xml/outliner/outlinetree.cpp.
Reimplemented in QDomElement.
bool QDomNode::isEntity () const [virtual]
Returns TRUE if the node is an entity; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomEntity; you can get theQDomEntitywithtoEntity().
See also toEntity().
Reimplemented in QDomEntity.
bool QDomNode::isEntityReference () const [virtual]
Returns TRUE if the node is an entity reference; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomEntityReferenceβ you can get theQDomEntityReferencewithtoEntityReference().
See also toEntityReference().
Reimplemented in QDomEntityReference.
bool QDomNode::isNotation () const [virtual]
Returns TRUE if the node is a notation; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomNotation; you can get theQDomNotationwithtoNotation().
See also toNotation().
Reimplemented in QDomNotation.
bool QDomNode::isNull () const
Returns TRUE if this node is null (i.e. if it has no type or contents); otherwise returns FALSE.
Example: xml/outliner/outlinetree.cpp.
bool QDomNode::isProcessingInstruction () const [virtual]
Returns TRUE if the node is a processing instruction; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomProcessingInstructionβ you can get theQProcessingInstructionwithtoProcessingInstruction().
See also toProcessingInstruction().
Reimplemented in QDomProcessingInstruction.
bool QDomNode::isSupported ( const QString & feature, const QString & version ) const [virtual]
Returns TRUE if the DOM implementation implements the feature feature and this feature is supported by this node in the version version; otherwise returns FALSE. β¨
See also QDomImplementation::hasFeature().
bool QDomNode::isText () const [virtual]
Returns TRUE if the node is a text node; otherwise returns FALSE.
β οΈTRUEdoes not imply this object is aQDomText; you can get theQDomTextwithtoText().
See also toText().
Reimplemented in QDomText.
QDomNode QDomNode::lastChild () const [virtual]
Returns the last child of the node π₯Ί If there is no child node, a null node is returned.
And listen β changing the returned node will also change the node in the document tree. It's not a copy, bestie, it's the real thing.
See also firstChild() and childNodes().
QString QDomNode::localName () const [virtual]
If the node uses namespaces, this function returns the local name of the node; otherwise it returns QString::null.
Only nodes of type ElementNode or AttributeNode can have namespaces. And a namespace must have been specified at creation time β it is not possible to add a namespace afterwards. So no take-backsies π«
See also prefix(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS().
QDomNode QDomNode::namedItem ( const QString & name ) const
Returns the first direct child node for which nodeName() equals name.
If no such direct child exists, a null node is returned.
See also nodeName().
QString QDomNode::namespaceURI () const [virtual]
Returns the namespace URI of this node, or QString::null if the node has no namespace URI.
Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace URI must be specified at creation time and cannot be changed later. Periodt π
See also prefix(), localName(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS().
QDomNode QDomNode::nextSibling () const [virtual]
Returns the next sibling in the document tree π³ Changing the returned node will also change the node in the document tree.
If you have XML like this:
<h1>Heading</h1>
<p>The text...</p>
<h2>Next heading</h2>
and this QDomNode represents the <p> tag, nextSibling() will return the node representing the <h2> tag. See? It's just like, the next one over. Iconic π
See also previousSibling().
Example: xml/outliner/outlinetree.cpp.
QString QDomNode::nodeName () const [virtual]
Returns the name of the node.
The meaning of the name depends on the subclass: <center>.nf </center>
See also nodeValue().
Example: xml/outliner/outlinetree.cpp.
QDomNode::NodeType QDomNode::nodeType () const [virtual]
Returns the type of the node.
See also toAttr(), toCDATASection(), toDocumentFragment(), toDocument(), toDocumentType(), toElement(), toEntityReference(), toText(), toEntity(), toNotation(), toProcessingInstruction(), toCharacterData(), and toComment().
Reimplemented in QDomDocumentType, QDomDocument, QDomDocumentFragment, QDomCharacterData, QDomAttr, QDomElement, QDomNotation, QDomEntity, QDomEntityReference, and QDomProcessingInstruction.
QString QDomNode::nodeValue () const [virtual]
Returns the value of the node.
The meaning of the value depends on the subclass: <center>.nf </center>
All the other subclasses do not have a node value and will return QString::null.
See also setNodeValue() and nodeName().
Example: xml/outliner/outlinetree.cpp.
void QDomNode::normalize () [virtual]
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 β they're built different, and honestly? respect π)
bool QDomNode::operator!= ( const QDomNode & n ) const
Returns TRUE if n and this DOM node are not equal; otherwise returns FALSE.
QDomNode & QDomNode::operator= ( const QDomNode & n )
Assigns a copy of n to this DOM node.
β οΈ the data of the copy is shared (shallow copy): modifying one node will also change the other. If you want a deep copy, use cloneNode().
bool QDomNode::operator== ( const QDomNode & n ) const
Returns TRUE if n and this DOM node are equal; otherwise returns FALSE.
QDomDocument QDomNode::ownerDocument () const [virtual]
Returns the document to which this node belongs.
QDomNode QDomNode::parentNode () const [virtual]
Returns the parent node π«Ά If this node has no parent, a null node is returned (i.e. a node for which isNull() returns TRUE).
QString QDomNode::prefix () const [virtual]
Returns the namespace prefix of the node, or QString::null if the node has no namespace prefix.
Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace prefix must be specified at creation time. But here's the good news β¨ β if a node was created with a namespace prefix, you can change it later with setPrefix().
If you create an element or attribute with QDomDocument::createElement() or QDomDocument::createAttribute(), the prefix will be QString::null. If you use QDomDocument::createElementNS() or QDomDocument::createAttributeNS() instead, the prefix will not be QString::null β but it might be an empty string if the name does not have a prefix. Sneaky little detail, but we love her πΈ
See also setPrefix(), localName(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS().
QDomNode QDomNode::previousSibling () const [virtual]
Returns the previous sibling in the document tree π³ Changing the returned node will also change the node in the document tree.
For example, if you have XML like this:
<h1>Heading</h1>
<p>The text...</p>
<h2>Next heading</h2>
and this QDomNode represents the <p> tag, previousSibling() will return the node representing the <h1> tag. Backwards vibes, but make it correct π
See also nextSibling().
π
QDomNode QDomNode::removeChild ( const QDomNode & oldChild ) [virtual]
okay bestie so this one literally yeets oldChild right out of the children list. but listen β oldChild has to be a direct child of this node. no grandkids, no distant cousins, direct child only, that's the rule and it's not negotiable π
Returns a new reference to oldChild when it works out, or a null node when it doesn't.
See also insertBefore(), insertAfter(), replaceChild(), and appendChild().
π QDomNode QDomNode::replaceChild ( const QDomNode & newChild, const QDomNode & oldChild ) [virtual]
swaps oldChild out and slots newChild in its place. and yeah, same energy as before: oldChild must be a direct child of this node, periodt.
if newChild already belongs to some other node, it gets reparented over to this one. and if newChild is already a child of this node? then it's not a swap, it's a glow-up β its position in the list of children just changes. main character moved seats, that's all πͺ
if newChild is a QDomDocumentFragment, then oldChild gets replaced by all of the fragment's children. not one, all of them. it's giving β¨buy one get the whole squadβ¨.
Returns a new reference to oldChild on success, or a null node on failure.
See also insertBefore(), insertAfter(), removeChild(), and appendChild().
πΎ void QDomNode::save ( QTextStream & str, int indent ) const
writes the XML representation of the node and all its children out to the stream str. it uses indent as the amount of space to indent the node β so like, how far in it sits. cute and tidy πΈ
βοΈ void QDomNode::setNodeValue ( const QString & v ) [virtual]
sets the node's value to v. that's it, that's the whole function, and honestly? iconic for it.
See also nodeValue().
π·οΈ void QDomNode::setPrefix ( const QString & pre ) [virtual]
if the node has a namespace prefix, this function changes the namespace prefix of the node to pre. if it doesn't have one? this function does nothing. absolutely nothing. it just sits there π
Only nodes of type ElementNode or AttributeNode can have namespaces. and a namespace prefix must be specified at creation time β you cannot add a namespace prefix afterwards. no retroactive glow-ups, bestie, the vibe is locked in at birth π
See also prefix(), localName(), namespaceURI(), QDomDocument::createElementNS(), and QDomDocument::createAttributeNS().
π QDomAttr QDomNode::toAttr ()
converts a QDomNode into a QDomAttr. if the node isn't an attribute, the returned object will be null β so no, it won't fake it for you π
See also isAttr().
π QDomCDATASection QDomNode::toCDATASection ()
converts a QDomNode into a QDomCDATASection. if the node isn't a CDATA section, the returned object will be null.
See also isCDATASection().
π QDomCharacterData QDomNode::toCharacterData ()
converts a QDomNode into a QDomCharacterData. if the node isn't a character data node, the returned object will be null.
See also isCharacterData().
π¬ QDomComment QDomNode::toComment ()
converts a QDomNode into a QDomComment. if the node isn't a comment, the returned object will be null.
See also isComment().
π QDomDocument QDomNode::toDocument ()
converts a QDomNode into a QDomDocument. if the node isn't a document, the returned object will be null.
See also isDocument().
π§© QDomDocumentFragment QDomNode::toDocumentFragment ()
converts a QDomNode into a QDomDocumentFragment. if the node isn't a document fragment, the returned object will be null.
See also isDocumentFragment().
π QDomDocumentType QDomNode::toDocumentType ()
converts a QDomNode into a QDomDocumentType. if the node isn't a document type, the returned object will be null.
See also isDocumentType().
π QDomElement QDomNode::toElement ()
converts a QDomNode into a QDomElement. if the node isn't an element, the returned object will be null.
See also isElement().
Example: xml/outliner/outlinetree.cpp.
π¦ QDomEntity QDomNode::toEntity ()
converts a QDomNode into a QDomEntity. if the node isn't an entity, the returned object will be null.
See also isEntity().
π QDomEntityReference QDomNode::toEntityReference ()
converts a QDomNode into a QDomEntityReference. if the node isn't an entity reference, the returned object will be null.
See also isEntityReference().
β QDomNotation QDomNode::toNotation ()
converts a QDomNode into a QDomNotation. if the node isn't a notation, the returned object will be null.
See also isNotation().
π§ QDomProcessingInstruction QDomNode::toProcessingInstruction ()
converts a QDomNode into a QDomProcessingInstruction. if the node isn't a processing instruction, the returned object will be null.
See also isProcessingInstruction().
π QDomText QDomNode::toText ()
converts a QDomNode into a QDomText. if the node isn't a text, the returned object will be null.
See also isText().
π«Ά RELATED FUNCTION DOCUMENTATION π«Ά
QTextStream & operator<< ( QTextStream & str, const QDomNode & node )
writes the XML representation of the node node and all its children to the stream str. the whole tree, no crumbs left behind, we love a complete output π³β¨
π SEE ALSO π
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
βοΈ AUTHOR βοΈ
Generated automatically from the source code. (not me writing it by hand in my notes app, sadly β the machine did it π)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. (fr fr, a good bug report is a love letter to every dev who comes after you π)
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qdomnode.3qt) and the Qt version (3.3.8).
okay and that's a wrap onQDomNode(3qt)bestie!! ππ this lil masterpiece is brought to you by Trolltech AS, dated 2 February 2007, and it's theQDomNode(3qt)page you've been reading β go forth and DOM, you absolute icon π β¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms