1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/xml/qdom.cpp -->
7
<title>Qt 4.0: QDomProcessingInstruction Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QDomProcessingInstruction Class Reference</h1>
21
<p>The QDomProcessingInstruction class represents an XML processing instruction. <a href="#details">More...</a></p>
22
<pre>#include <QDomProcessingInstruction></pre><p>Part of the <a href="qtxml.html">QtXml</a> module.</p>
23
<p>Inherits <a href="qdomnode.html">QDomNode</a>.</p>
24
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
26
<li><a href="qdomprocessinginstruction-members.html">List of all members, including inherited members</a></li>
28
<a name="public-functions"></a>
29
<h3>Public Functions</h3>
31
<li><div class="fn"/><b><a href="qdomprocessinginstruction.html#QDomProcessingInstruction">QDomProcessingInstruction</a></b> ()</li>
32
<li><div class="fn"/><b><a href="qdomprocessinginstruction.html#QDomProcessingInstruction-2">QDomProcessingInstruction</a></b> ( const QDomProcessingInstruction & <i>x</i> )</li>
33
<li><div class="fn"/>QString <b><a href="qdomprocessinginstruction.html#data">data</a></b> () const</li>
34
<li><div class="fn"/>QDomNode::NodeType <b><a href="qdomprocessinginstruction.html#nodeType">nodeType</a></b> () const</li>
35
<li><div class="fn"/>void <b><a href="qdomprocessinginstruction.html#setData">setData</a></b> ( const QString & <i>d</i> )</li>
36
<li><div class="fn"/>QString <b><a href="qdomprocessinginstruction.html#target">target</a></b> () const</li>
37
<li><div class="fn"/>QDomProcessingInstruction & <b><a href="qdomprocessinginstruction.html#operator-eq">operator=</a></b> ( const QDomProcessingInstruction & <i>x</i> )</li>
40
<li><div class="fn"/>63 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
42
<a name="details"></a>
44
<h2>Detailed Description</h2>
45
<p>The QDomProcessingInstruction class represents an XML processing instruction.</p>
46
<p>Processing instructions are used in XML to keep processor-specific information in the text of the document.</p>
47
<p>The content of the processing instruction is retrieved with <a href="qdomprocessinginstruction.html#data">data</a>() and set with <a href="qdomprocessinginstruction.html#setData">setData</a>(). The processing instruction's target is retrieved with <a href="qdomprocessinginstruction.html#target">target</a>().</p>
48
<p>For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">Level 1</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">Level 2 Core</a>. For a more general introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a> documentation.</p>
50
<h2>Member Function Documentation</h2>
51
<h3 class="fn"><a name="QDomProcessingInstruction"></a>QDomProcessingInstruction::QDomProcessingInstruction ()</h3>
52
<p>Constructs an empty processing instruction. Use <a href="qdomdocument.html#createProcessingInstruction">QDomDocument::createProcessingInstruction</a>() to create a processing instruction with content.</p>
53
<h3 class="fn"><a name="QDomProcessingInstruction-2"></a>QDomProcessingInstruction::QDomProcessingInstruction ( const QDomProcessingInstruction & <i>x</i> )</h3>
54
<p>Constructs a copy of <i>x</i>.</p>
55
<p>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 <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
56
<h3 class="fn"><a name="data"></a><a href="qstring.html">QString</a> QDomProcessingInstruction::data () const</h3>
57
<p>Returns the content of this processing instruction.</p>
58
<p>See also <a href="qdomprocessinginstruction.html#setData">setData</a>() and <a href="qdomprocessinginstruction.html#target">target</a>().</p>
59
<h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomProcessingInstruction::nodeType () const</h3>
60
<p>Returns <tt>ProcessingInstructionNode</tt>.</p>
61
<h3 class="fn"><a name="setData"></a>void QDomProcessingInstruction::setData ( const <a href="qstring.html">QString</a> & <i>d</i> )</h3>
62
<p>Sets the data contained in the processing instruction to <i>d</i>.</p>
63
<p>See also <a href="qdomprocessinginstruction.html#data">data</a>().</p>
64
<h3 class="fn"><a name="target"></a><a href="qstring.html">QString</a> QDomProcessingInstruction::target () const</h3>
65
<p>Returns the target of this processing instruction.</p>
66
<p>See also <a href="qdomprocessinginstruction.html#data">data</a>().</p>
67
<h3 class="fn"><a name="operator-eq"></a>QDomProcessingInstruction & QDomProcessingInstruction::operator= ( const QDomProcessingInstruction & <i>x</i> )</h3>
68
<p>Assigns <i>x</i> to this processing instruction.</p>
69
<p>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 <a href="qdomnode.html#cloneNode">cloneNode</a>().</p>
70
<p /><address><hr /><div align="center">
71
<table width="100%" cellspacing="0" border="0"><tr class="address">
72
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
73
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
74
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
75
</tr></table></div></address></body>