Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# TQDomProcessingInstruction Class Reference
[XML module]

The TQDomProcessingInstruction class represents an XML processing instruction. More...

All the functions in this class are reentrant when TQt is built with thread support.

`#include <ntqdom.h>`

Inherits TQDomNode.

List of all member functions.

## Public Members

- TQDomProcessingInstruction ()
- TQDomProcessingInstruction ( const TQDomProcessingInstruction & x )
- TQDomProcessingInstruction & operator= ( const TQDomProcessingInstruction & x )
- ~TQDomProcessingInstruction ()
- virtual TQString target () const
- virtual TQString data () const
- virtual void setData ( const TQString & d )
- virtual TQDomNode::NodeType nodeType () const
- virtual bool isProcessingInstruction () const

## Detailed Description

The TQDomProcessingInstruction class represents an XML processing instruction.

Processing instructions are used in XML to keep processor-specific information in the text of the document.

The content of the processing instruction is retrieved with data() and set with setData(). The processing instruction's target is retrieved with target().

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.

See also XML.

## Member Function Documentation

### TQDomProcessingInstruction::TQDomProcessingInstruction ()

Constructs an empty processing instruction. Use TQDomDocument::createProcessingInstruction() to create a processing instruction with content.

### TQDomProcessingInstruction::TQDomProcessingInstruction ( const TQDomProcessingInstruction & 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().

### TQDomProcessingInstruction::~TQDomProcessingInstruction ()

Destroys the object and frees its resources.

### TQString TQDomProcessingInstruction::data () const`[virtual]`

Returns the content of this processing instruction.

See also setData() and target().

### bool TQDomProcessingInstruction::isProcessingInstruction () const`[virtual]`

Returns TRUE.

Reimplemented from TQDomNode.

### TQDomNode::NodeType TQDomProcessingInstruction::nodeType () const`[virtual]`

Returns ProcessingInstructionNode.

Reimplemented from TQDomNode.

### TQDomProcessingInstruction & TQDomProcessingInstruction::operator= ( const TQDomProcessingInstruction & x )

Assigns x to this processing instruction.

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

### void TQDomProcessingInstruction::setData ( const TQString & d )`[virtual]`

Sets the data contained in the processing instruction to d.

See also data().

### TQString TQDomProcessingInstruction::target () const`[virtual]`

Returns the target of this processing instruction.

See also data().

This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.