TQDomDocumentFragment(3qt)

NAME
TQDomDocumentFragment - Tree of TQDomNodes which is not usually a complete TQDomDocument

SYNOPSIS
All the functions in this class are reentrant when TQt is built with thread support.</p>

#include <tqdom.h>

Inherits TQDomNode.

  Public Members
TQDomDocumentFragment ()
TQDomDocumentFragment ( const TQDomDocumentFragment & x )
TQDomDocumentFragment & operator= ( const TQDomDocumentFragment & x )
~TQDomDocumentFragment ()
virtual TQDomNode::NodeType nodeType () const
virtual bool isDocumentFragment () const

DESCRIPTION
The TQDomDocumentFragment class is a tree of TQDomNodes which is not usually a complete TQDomDocument.

If you want to do complex tree operations it is useful to have a lightweight class to store nodes and their relations. TQDomDocumentFragment stores a subtree of a document which does not necessarily represent a well-formed XML document.

TQDomDocumentFragment is also useful if you want to group several nodes in a list and insert them all together as children of some node. In these cases TQDomDocumentFragment can be used as a temporary container for this list of children.

The most important feature of TQDomDocumentFragment is that it is treated in a special way by TQDomNode::insertAfter(), TQDomNode::insertBefore(), TQDomNode::replaceChild() and TQDomNode::appendChild(): instead of inserting the fragment itself, all the fragment's children are inserted.

See also XML.

MEMBER FUNCTION DOCUMENTATION

TQDomDocumentFragment::TQDomDocumentFragment ()
Constructs an empty document fragment.

TQDomDocumentFragment::TQDomDocumentFragment ( const TQDomDocumentFragment & x )
Constructs a copy of x.

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().

TQDomDocumentFragment::~TQDomDocumentFragment ()
Destroys the object and frees its resources.

bool TQDomDocumentFragment::isDocumentFragment () const [virtual]
This function reimplements TQDomNode::isDocumentFragment().

See also nodeType() and TQDomNode::toDocumentFragment().

Reimplemented from TQDomNode.

TQDomNode::NodeType TQDomDocumentFragment::nodeType () const [virtual]
Returns DocumentFragment.

See also isDocumentFragment() and TQDomNode::toDocumentFragment().

Reimplemented from TQDomNode.

TQDomDocumentFragment & TQDomDocumentFragment::operator= ( const TQDomDocumentFragment & x )
Assigns x to this DOM document fragment.

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().

SEE ALSO
http://doc.trolltech.com/tqdomdocumentfragment.html http://www.trolltech.com/faq/tech.html

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.

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.

The definitive TQt documentation is provided in HTML format; it is located at $TQTDIR/doc/html and can be read using TQt 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 (tqdomdocumentfragment.3qt) and the Qt version (3.3.8).