File: xml-dom.html

package info (click to toggle)
qt-x11 3%3A2.3.1-22
  • links: PTS
  • area: main
  • in suites: woody
  • size: 48,524 kB
  • ctags: 46,337
  • sloc: cpp: 260,077; ansic: 32,457; makefile: 31,131; yacc: 2,444; sh: 1,513; lex: 480; perl: 422; xml: 68; lisp: 15
file content (108 lines) | stat: -rw-r--r-- 5,628 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit -  The Qt DOM classes</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style></head><body bgcolor="#ffffff">
<p>
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center> The Qt DOM classes</h1><br clear="all">
<p>
<h2><a name="introDOM">Introduction to DOM</a></h2>
<p>
DOM provides an interface to access and change the content and structure of
an XML file. It makes a hierarchical view of the document (tree) 
available with the root element of the XML file serving as its root. 
Thus -- in contrast to the SAX2 interface -- an object model of the document 
is resident in memory after parsing which makes manipulation easy. 
<p>
In the Qt implementation of the DOM all
nodes in the document tree are subclasses of <a href="qdomnode.html">QDomNode</a>.
The document itself is represented as a <a href="qdomdocument.html">QDomDocument</a> object.
<p>
The following table lists the available node classes and 
their potential children classes.
<table>
<tr>
    <th align="left">Node type</th>
    <th align="left">Possible children</th>
</tr>
<tr>
    <td><a href="qdomdocument.html">QDomDocument</a> </td>
    <td><a href="qdomelement.html">QDomElement</a> (maximum one), <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>,
        <a href="qdomcomment.html">QDomComment</a>, <a href="qdomdocumenttype.html">QDomDocumentType</a> </td>
</tr>
<tr>
    <td><a href="qdomdocumentfragment.html">QDomDocumentFragment</a> </td>
    <td><a href="qdomelement.html">QDomElement</a>, <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>, <a href="qdomcomment.html">QDomComment</a>,
        <a href="qdomtext.html">QDomText</a>, <a href="qdomcdatasection.html">QDomCDATASection</a>, <a href="qdomentityreference.html">QDomEntityReference</a> </td>
</tr>
<tr><td><a href="qdomdocumenttype.html">QDomDocumentType</a> </td>
    <td>no children </td>
</tr>
<tr><td><a href="qdomentityreference.html">QDomEntityReference</a> </td>
    <td><a href="qdomelement.html">QDomElement</a>, <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>, <a href="qdomcomment.html">QDomComment</a>,
        <a href="qdomtext.html">QDomText</a>, <a href="qdomcdatasection.html">QDomCDATASection</a>, <a href="qdomentityreference.html">QDomEntityReference</a> </td>
</tr>
<tr><td><a href="qdomelement.html">QDomElement</a> </td>
    <td><a href="qdomelement.html">QDomElement</a>, <a href="qdomtext.html">QDomText</a>, <a href="qdomcomment.html">QDomComment</a>,
        <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>, <a href="qdomcdatasection.html">QDomCDATASection</a>,
        <a href="qdomentityreference.html">QDomEntityReference</a> </td>
</tr>
<tr><td><a href="qdomattr.html">QDomAttr</a> </td>
    <td><a href="qdomtext.html">QDomText</a>, <a href="qdomentityreference.html">QDomEntityReference</a> </td>
</tr>
<tr><td><a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a> </td>
    <td>no children </td>
</tr>
<tr><td><a href="qdomcomment.html">QDomComment</a> </td>
    <td>no children </td>
</tr>
<tr><td><a href="qdomtext.html">QDomText</a> </td>
    <td>no children </td>
</tr>
<tr><td><a href="qdomcdatasection.html">QDomCDATASection</a> </td>
    <td>no children </td>
</tr>
<tr><td><a href="qdomentity.html">QDomEntity</a> </td>
    <td><a href="qdomelement.html">QDomElement</a>, <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a>, <a href="qdomcomment.html">QDomComment</a>,
        <a href="qdomtext.html">QDomText</a>, <a href="qdomcdatasection.html">QDomCDATASection</a>, <a href="qdomentityreference.html">QDomEntityReference</a> </td>
</tr>
<tr><td><a href="qdomnotation.html">QDomNotation</a> </td>
    <td>no children </td>
</tr>
</table>
<p>
With <a href="qdomnodelist.html">QDomNodeList</a> and <a href="qdomnamednodemap.html">QDomNamedNodeMap</a> two collection classes 
are provided: <a href="qdomnodelist.html">QDomNodeList</a> is a list of nodes
whereas <a href="qdomnamednodemap.html">QDomNamedNodeMap</a> is used to handle unordered sets of nodes
(often used for attributes).
<p>
The <a href="qdomimplementation.html">QDomImplementation</a> class allows the user to query features of the
DOM implementation.
<p>
<h2>Further reading</h2>
<p>
To get started please refer to the <a href="qdomdocument.html">QDomDocument</a> documentation that
describes basic usage.
<p>
More information about Qt and XML 
can be found in the <a href="xml.html">introduction to the Qt XML module.</a>

<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2000 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.1</div>
</table></div></address></body></html>