source: trunk/doc/html/qdomprocessinginstruction.html@ 203

Last change on this file since 203 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 7.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qdom.cpp:5632 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QDomProcessingInstruction Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDomProcessingInstruction Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
33
34<p>The QDomProcessingInstruction class represents an XML processing
35instruction.
36<a href="#details">More...</a>
37<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
38<p><tt>#include &lt;<a href="qdom-h.html">qdom.h</a>&gt;</tt>
39<p>Inherits <a href="qdomnode.html">QDomNode</a>.
40<p><a href="qdomprocessinginstruction-members.html">List of all member functions.</a>
41<h2>Public Members</h2>
42<ul>
43<li class=fn><a href="#QDomProcessingInstruction"><b>QDomProcessingInstruction</b></a> ()</li>
44<li class=fn><a href="#QDomProcessingInstruction-2"><b>QDomProcessingInstruction</b></a> ( const&nbsp;QDomProcessingInstruction&nbsp;&amp;&nbsp;x )</li>
45<li class=fn>QDomProcessingInstruction &amp; <a href="#operator-eq"><b>operator=</b></a> ( const&nbsp;QDomProcessingInstruction&nbsp;&amp;&nbsp;x )</li>
46<li class=fn><a href="#~QDomProcessingInstruction"><b>~QDomProcessingInstruction</b></a> ()</li>
47<li class=fn>virtual QString <a href="#target"><b>target</b></a> () const</li>
48<li class=fn>virtual QString <a href="#data"><b>data</b></a> () const</li>
49<li class=fn>virtual void <a href="#setData"><b>setData</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;d )</li>
50<li class=fn>virtual QDomNode::NodeType <a href="#nodeType"><b>nodeType</b></a> () const</li>
51<li class=fn>virtual bool <a href="#isProcessingInstruction"><b>isProcessingInstruction</b></a> () const</li>
52</ul>
53<hr><a name="details"></a><h2>Detailed Description</h2>
54
55
56
57The QDomProcessingInstruction class represents an XML processing
58instruction.
59
60<p>
61
62<p> Processing instructions are used in XML to keep processor-specific
63information in the text of the document.
64<p> The content of the processing instruction is retrieved with <a href="#data">data</a>()
65and set with <a href="#setData">setData</a>(). The processing instruction's target is
66retrieved with <a href="#target">target</a>().
67<p> For further information about the Document Object Model see
68<a href="http://www.w3.org/TR/REC-DOM-Level-1/">http://www.w3.org/TR/REC-DOM-Level-1/</a> and
69<a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>.
70For a more general introduction of the DOM implementation see the
71<a href="qdomdocument.html">QDomDocument</a> documentation.
72<p>See also <a href="xml-tools.html">XML</a>.
73
74<hr><h2>Member Function Documentation</h2>
75<h3 class=fn><a name="QDomProcessingInstruction"></a>QDomProcessingInstruction::QDomProcessingInstruction ()
76</h3>
77Constructs an empty processing instruction. Use
78<a href="qdomdocument.html#createProcessingInstruction">QDomDocument::createProcessingInstruction</a>() to create a processing
79instruction with content.
80
81<h3 class=fn><a name="QDomProcessingInstruction-2"></a>QDomProcessingInstruction::QDomProcessingInstruction ( const&nbsp;<a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>&nbsp;&amp;&nbsp;x )
82</h3>
83Constructs a copy of <em>x</em>.
84<p> The data of the copy is shared (shallow copy): modifying one node
85will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
86<a href="qdomnode.html#cloneNode">cloneNode</a>().
87
88<h3 class=fn><a name="~QDomProcessingInstruction"></a>QDomProcessingInstruction::~QDomProcessingInstruction ()
89</h3>
90Destroys the object and frees its resources.
91
92<h3 class=fn><a href="qstring.html">QString</a> <a name="data"></a>QDomProcessingInstruction::data () const<tt> [virtual]</tt>
93</h3>
94Returns the content of this processing instruction.
95<p> <p>See also <a href="#setData">setData</a>() and <a href="#target">target</a>().
96
97<h3 class=fn>bool <a name="isProcessingInstruction"></a>QDomProcessingInstruction::isProcessingInstruction () const<tt> [virtual]</tt>
98</h3>
99Returns TRUE.
100
101<p>Reimplemented from <a href="qdomnode.html#isProcessingInstruction">QDomNode</a>.
102<h3 class=fn><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> <a name="nodeType"></a>QDomProcessingInstruction::nodeType () const<tt> [virtual]</tt>
103</h3>
104Returns <a href="qdomnode.html#NodeType-enum">ProcessingInstructionNode</a>.
105
106<p>Reimplemented from <a href="qdomnode.html#nodeType">QDomNode</a>.
107<h3 class=fn><a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>&nbsp;&amp; <a name="operator-eq"></a>QDomProcessingInstruction::operator= ( const&nbsp;<a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>&nbsp;&amp;&nbsp;x )
108</h3>
109Assigns <em>x</em> to this processing instruction.
110<p> The data of the copy is shared (shallow copy): modifying one node
111will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
112<a href="qdomnode.html#cloneNode">cloneNode</a>().
113
114<h3 class=fn>void <a name="setData"></a>QDomProcessingInstruction::setData ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;d )<tt> [virtual]</tt>
115</h3>
116Sets the data contained in the processing instruction to <em>d</em>.
117<p> <p>See also <a href="#data">data</a>().
118
119<h3 class=fn><a href="qstring.html">QString</a> <a name="target"></a>QDomProcessingInstruction::target () const<tt> [virtual]</tt>
120</h3>
121Returns the target of this processing instruction.
122<p> <p>See also <a href="#data">data</a>().
123
124<!-- eof -->
125<hr><p>
126This file is part of the <a href="index.html">Qt toolkit</a>.
127Copyright &copy; 1995-2007
128<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
129<table width=100% cellspacing=0 border=0><tr>
130<td>Copyright &copy; 2007
131<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
132<td align=right><div align=right>Qt 3.3.8</div>
133</table></div></address></body>
134</html>
Note: See TracBrowser for help on using the repository browser.