Qt 4.8
qdom.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtXml module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #ifndef QDOM_H
43 #define QDOM_H
44 
45 #include <QtCore/qstring.h>
46 
48 
50 
51 QT_MODULE(Xml)
52 
53 #ifndef QT_NO_DOM
54 
55 class QIODevice;
56 class QTextStream;
57 
58 class QXmlInputSource;
59 class QXmlReader;
60 
64 class QDomNodePrivate;
67 class QDomElementPrivate;
69 class QDomEntityPrivate;
72 class QDomAttrPrivate;
74 class QDomTextPrivate;
75 class QDomCommentPrivate;
79 
80 class QDomNodeList;
81 class QDomElement;
82 class QDomText;
83 class QDomComment;
84 class QDomCDATASection;
86 class QDomAttr;
88 class QDomDocument;
89 class QDomNamedNodeMap;
90 class QDomDocument;
92 class QDomDocumentType;
93 class QDomImplementation;
94 class QDomNode;
95 class QDomEntity;
96 class QDomNotation;
97 class QDomCharacterData;
98 
100 {
101 public:
105  QDomImplementation& operator= (const QDomImplementation&);
106  bool operator== (const QDomImplementation&) const;
107  bool operator!= (const QDomImplementation&) const;
108 
109  // functions
110  bool hasFeature(const QString& feature, const QString& version) const;
111  QDomDocumentType createDocumentType(const QString& qName, const QString& publicId, const QString& systemId);
112  QDomDocument createDocument(const QString& nsURI, const QString& qName, const QDomDocumentType& doctype);
113 
114  enum InvalidDataPolicy { AcceptInvalidChars = 0, DropInvalidChars, ReturnNullNode };
115  static InvalidDataPolicy invalidDataPolicy();
116  static void setInvalidDataPolicy(InvalidDataPolicy policy);
117 
118  // Qt extension
119  bool isNull();
120 
121 private:
124 
125  friend class QDomDocument;
126 };
127 
129 {
130 public:
131  enum NodeType {
132  ElementNode = 1,
133  AttributeNode = 2,
134  TextNode = 3,
135  CDATASectionNode = 4,
136  EntityReferenceNode = 5,
137  EntityNode = 6,
138  ProcessingInstructionNode = 7,
139  CommentNode = 8,
140  DocumentNode = 9,
141  DocumentTypeNode = 10,
142  DocumentFragmentNode = 11,
143  NotationNode = 12,
144  BaseNode = 21,// this is not in the standard
145  CharacterDataNode = 22 // this is not in the standard
146  };
147 
149  {
150  EncodingFromDocument = 1,
151  EncodingFromTextStream = 2
152  };
153 
154  QDomNode();
155  QDomNode(const QDomNode&);
156  QDomNode& operator= (const QDomNode&);
157  bool operator== (const QDomNode&) const;
158  bool operator!= (const QDomNode&) const;
159  ~QDomNode();
160 
161  // DOM functions
162  QDomNode insertBefore(const QDomNode& newChild, const QDomNode& refChild);
163  QDomNode insertAfter(const QDomNode& newChild, const QDomNode& refChild);
164  QDomNode replaceChild(const QDomNode& newChild, const QDomNode& oldChild);
165  QDomNode removeChild(const QDomNode& oldChild);
166  QDomNode appendChild(const QDomNode& newChild);
167  bool hasChildNodes() const;
168  QDomNode cloneNode(bool deep = true) const;
169  void normalize();
170  bool isSupported(const QString& feature, const QString& version) const;
171 
172  // DOM read-only attributes
173  QString nodeName() const;
174  NodeType nodeType() const;
175  QDomNode parentNode() const;
176  QDomNodeList childNodes() const;
177  QDomNode firstChild() const;
178  QDomNode lastChild() const;
179  QDomNode previousSibling() const;
180  QDomNode nextSibling() const;
181  QDomNamedNodeMap attributes() const;
182  QDomDocument ownerDocument() const;
183  QString namespaceURI() const;
184  QString localName() const;
185  bool hasAttributes() const;
186 
187  // DOM attributes
188  QString nodeValue() const;
189  void setNodeValue(const QString&);
190  QString prefix() const;
191  void setPrefix(const QString& pre);
192 
193  // Qt extensions
194  bool isAttr() const;
195  bool isCDATASection() const;
196  bool isDocumentFragment() const;
197  bool isDocument() const;
198  bool isDocumentType() const;
199  bool isElement() const;
200  bool isEntityReference() const;
201  bool isText() const;
202  bool isEntity() const;
203  bool isNotation() const;
204  bool isProcessingInstruction() const;
205  bool isCharacterData() const;
206  bool isComment() const;
207 
212  QDomNode namedItem(const QString& name) const;
213 
214  bool isNull() const;
215  void clear();
216 
217  QDomAttr toAttr() const;
218  QDomCDATASection toCDATASection() const;
219  QDomDocumentFragment toDocumentFragment() const;
220  QDomDocument toDocument() const;
221  QDomDocumentType toDocumentType() const;
222  QDomElement toElement() const;
223  QDomEntityReference toEntityReference() const;
224  QDomText toText() const;
225  QDomEntity toEntity() const;
226  QDomNotation toNotation() const;
227  QDomProcessingInstruction toProcessingInstruction() const;
228  QDomCharacterData toCharacterData() const;
229  QDomComment toComment() const;
230 
231  void save(QTextStream&, int) const;
232  void save(QTextStream&, int, EncodingPolicy) const; // ### Qt 5: Merge overload(if we at all keep this)
233 
234  QDomElement firstChildElement(const QString &tagName = QString()) const;
235  QDomElement lastChildElement(const QString &tagName = QString()) const;
236  QDomElement previousSiblingElement(const QString &tagName = QString()) const;
237  QDomElement nextSiblingElement(const QString &taName = QString()) const;
238 
239  int lineNumber() const;
240  int columnNumber() const;
241 
242 protected:
245 
246 private:
247  friend class QDomDocument;
248  friend class QDomDocumentType;
249  friend class QDomNodeList;
250  friend class QDomNamedNodeMap;
251 };
252 
254 {
255 public:
256  QDomNodeList();
257  QDomNodeList(const QDomNodeList&);
258  QDomNodeList& operator= (const QDomNodeList&);
259  bool operator== (const QDomNodeList&) const;
260  bool operator!= (const QDomNodeList&) const;
261  ~QDomNodeList();
262 
263  // DOM functions
264  QDomNode item(int index) const;
265  inline QDomNode at(int index) const { return item(index); } // Qt API consistency
266 
267  // DOM read only attributes
268  uint length() const;
269  inline int count() const { return length(); } // Qt API consitancy
270  inline int size() const { return length(); } // Qt API consistency
271  inline bool isEmpty() const { return length() == 0; } // Qt API consistency
272 
273 private:
276 
277  friend class QDomNode;
278  friend class QDomElement;
279  friend class QDomDocument;
280 };
281 
283 {
284 public:
288 
289  // DOM read only attributes
290  QString name() const;
291  QDomNamedNodeMap entities() const;
292  QDomNamedNodeMap notations() const;
293  QString publicId() const;
294  QString systemId() const;
295  QString internalSubset() const;
296 
297  // Overridden from QDomNode
298  inline QDomNode::NodeType nodeType() const { return DocumentTypeNode; }
299 
300 private:
302 
303  friend class QDomImplementation;
304  friend class QDomDocument;
305  friend class QDomNode;
306 };
307 
309 {
310 public:
311  QDomDocument();
312  explicit QDomDocument(const QString& name);
313  explicit QDomDocument(const QDomDocumentType& doctype);
314  QDomDocument(const QDomDocument& x);
316  ~QDomDocument();
317 
318  // DOM functions
319  QDomElement createElement(const QString& tagName);
320  QDomDocumentFragment createDocumentFragment();
322  QDomComment createComment(const QString& data);
323  QDomCDATASection createCDATASection(const QString& data);
324  QDomProcessingInstruction createProcessingInstruction(const QString& target, const QString& data);
325  QDomAttr createAttribute(const QString& name);
326  QDomEntityReference createEntityReference(const QString& name);
327  QDomNodeList elementsByTagName(const QString& tagname) const;
328  QDomNode importNode(const QDomNode& importedNode, bool deep);
329  QDomElement createElementNS(const QString& nsURI, const QString& qName);
330  QDomAttr createAttributeNS(const QString& nsURI, const QString& qName);
331  QDomNodeList elementsByTagNameNS(const QString& nsURI, const QString& localName);
332  QDomElement elementById(const QString& elementId);
333 
334  // DOM read only attributes
335  QDomDocumentType doctype() const;
336  QDomImplementation implementation() const;
337  QDomElement documentElement() const;
338 
339  // Overridden from QDomNode
340  inline QDomNode::NodeType nodeType() const { return DocumentNode; }
341 
342  // Qt extensions
343  bool setContent(const QByteArray& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
344  bool setContent(const QString& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
345  bool setContent(QIODevice* dev, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
346  bool setContent(QXmlInputSource *source, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
347  bool setContent(const QByteArray& text, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
348  bool setContent(const QString& text, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
349  bool setContent(QIODevice* dev, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
350  bool setContent(QXmlInputSource *source, QXmlReader *reader, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );
351 
352  // Qt extensions
353  QString toString(int = 1) const;
354  QByteArray toByteArray(int = 1) const;
355 
356 private:
358 
359  friend class QDomNode;
360 };
361 
363 {
364 public:
367  QDomNamedNodeMap& operator= (const QDomNamedNodeMap&);
368  bool operator== (const QDomNamedNodeMap&) const;
369  bool operator!= (const QDomNamedNodeMap&) const;
370  ~QDomNamedNodeMap();
371 
372  // DOM functions
373  QDomNode namedItem(const QString& name) const;
374  QDomNode setNamedItem(const QDomNode& newNode);
375  QDomNode removeNamedItem(const QString& name);
376  QDomNode item(int index) const;
377  QDomNode namedItemNS(const QString& nsURI, const QString& localName) const;
378  QDomNode setNamedItemNS(const QDomNode& newNode);
379  QDomNode removeNamedItemNS(const QString& nsURI, const QString& localName);
380 
381  // DOM read only attributes
382  uint length() const;
383  int count() const { return length(); } // Qt API consitancy
384  inline int size() const { return length(); } // Qt API consistency
385  inline bool isEmpty() const { return length() == 0; } // Qt API consistency
386 
387  // Qt extension
388  bool contains(const QString& name) const;
389 
390 private:
393 
394  friend class QDomNode;
395  friend class QDomDocumentType;
396  friend class QDomElement;
397 };
398 
400 {
401 public:
405 
406  // Overridden from QDomNode
408 
409 private:
411 
412  friend class QDomDocument;
413  friend class QDomNode;
414 };
415 
417 {
418 public:
422 
423  // DOM functions
424  QString substringData(unsigned long offset, unsigned long count);
425  void appendData(const QString& arg);
426  void insertData(unsigned long offset, const QString& arg);
427  void deleteData(unsigned long offset, unsigned long count);
428  void replaceData(unsigned long offset, unsigned long count, const QString& arg);
429 
430  // DOM read only attributes
431  uint length() const;
432 
433  // DOM attributes
434  QString data() const;
435  void setData(const QString&);
436 
437  // Overridden from QDomNode
439 
440 private:
442 
443  friend class QDomDocument;
444  friend class QDomText;
445  friend class QDomComment;
446  friend class QDomNode;
447 };
448 
450 {
451 public:
452  QDomAttr();
453  QDomAttr(const QDomAttr& x);
454  QDomAttr& operator= (const QDomAttr&);
455 
456  // DOM read only attributes
457  QString name() const;
458  bool specified() const;
459  QDomElement ownerElement() const;
460 
461  // DOM attributes
462  QString value() const;
463  void setValue(const QString&);
464 
465  // Overridden from QDomNode
466  inline QDomNode::NodeType nodeType() const { return AttributeNode; }
467 
468 private:
470 
471  friend class QDomDocument;
472  friend class QDomElement;
473  friend class QDomNode;
474 };
475 
477 {
478 public:
479  QDomElement();
480  QDomElement(const QDomElement& x);
482 
483  // DOM functions
484  QString attribute(const QString& name, const QString& defValue = QString() ) const;
485  void setAttribute(const QString& name, const QString& value);
486  void setAttribute(const QString& name, qlonglong value);
487  void setAttribute(const QString& name, qulonglong value);
488  inline void setAttribute(const QString& name, int value)
489  { setAttribute(name, qlonglong(value)); }
490  inline void setAttribute(const QString& name, uint value)
491  { setAttribute(name, qulonglong(value)); }
492  void setAttribute(const QString& name, float value);
493  void setAttribute(const QString& name, double value);
494  void removeAttribute(const QString& name);
495  QDomAttr attributeNode(const QString& name);
496  QDomAttr setAttributeNode(const QDomAttr& newAttr);
497  QDomAttr removeAttributeNode(const QDomAttr& oldAttr);
498  QDomNodeList elementsByTagName(const QString& tagname) const;
499  bool hasAttribute(const QString& name) const;
500 
501  QString attributeNS(const QString nsURI, const QString& localName, const QString& defValue = QString()) const;
502  void setAttributeNS(const QString nsURI, const QString& qName, const QString& value);
503  inline void setAttributeNS(const QString nsURI, const QString& qName, int value)
504  { setAttributeNS(nsURI, qName, qlonglong(value)); }
505  inline void setAttributeNS(const QString nsURI, const QString& qName, uint value)
506  { setAttributeNS(nsURI, qName, qulonglong(value)); }
507  void setAttributeNS(const QString nsURI, const QString& qName, qlonglong value);
508  void setAttributeNS(const QString nsURI, const QString& qName, qulonglong value);
509  void setAttributeNS(const QString nsURI, const QString& qName, double value);
510  void removeAttributeNS(const QString& nsURI, const QString& localName);
511  QDomAttr attributeNodeNS(const QString& nsURI, const QString& localName);
512  QDomAttr setAttributeNodeNS(const QDomAttr& newAttr);
513  QDomNodeList elementsByTagNameNS(const QString& nsURI, const QString& localName) const;
514  bool hasAttributeNS(const QString& nsURI, const QString& localName) const;
515 
516  // DOM read only attributes
517  QString tagName() const;
518  void setTagName(const QString& name); // Qt extension
519 
520  // Overridden from QDomNode
522  inline QDomNode::NodeType nodeType() const { return ElementNode; }
523 
524  QString text() const;
525 
526 private:
528 
529  friend class QDomDocument;
530  friend class QDomNode;
531  friend class QDomAttr;
532 };
533 
535 {
536 public:
537  QDomText();
538  QDomText(const QDomText& x);
539  QDomText& operator= (const QDomText&);
540 
541  // DOM functions
542  QDomText splitText(int offset);
543 
544  // Overridden from QDomCharacterData
545  inline QDomNode::NodeType nodeType() const { return TextNode; }
546 
547 private:
549 
550  friend class QDomCDATASection;
551  friend class QDomDocument;
552  friend class QDomNode;
553 };
554 
556 {
557 public:
558  QDomComment();
559  QDomComment(const QDomComment& x);
561 
562  // Overridden from QDomCharacterData
563  inline QDomNode::NodeType nodeType() const { return CommentNode; }
564 
565 private:
567 
568  friend class QDomDocument;
569  friend class QDomNode;
570 };
571 
573 {
574 public:
578 
579  // Overridden from QDomText
580  inline QDomNode::NodeType nodeType() const { return CDATASectionNode; }
581 
582 private:
584 
585  friend class QDomDocument;
586  friend class QDomNode;
587 };
588 
590 {
591 public:
592  QDomNotation();
593  QDomNotation(const QDomNotation& x);
595 
596  // DOM read only attributes
597  QString publicId() const;
598  QString systemId() const;
599 
600  // Overridden from QDomNode
601  inline QDomNode::NodeType nodeType() const { return NotationNode; }
602 
603 private:
605 
606  friend class QDomDocument;
607  friend class QDomNode;
608 };
609 
611 {
612 public:
613  QDomEntity();
614  QDomEntity(const QDomEntity& x);
616 
617  // DOM read only attributes
618  QString publicId() const;
619  QString systemId() const;
620  QString notationName() const;
621 
622  // Overridden from QDomNode
623  inline QDomNode::NodeType nodeType() const { return EntityNode; }
624 
625 private:
627 
628  friend class QDomNode;
629 };
630 
632 {
633 public:
637 
638  // Overridden from QDomNode
640 
641 private:
643 
644  friend class QDomDocument;
645  friend class QDomNode;
646 };
647 
649 {
650 public:
654 
655  // DOM read only attributes
656  QString target() const;
657 
658  // DOM attributes
659  QString data() const;
660  void setData(const QString& d);
661 
662  // Overridden from QDomNode
664 
665 private:
667 
668  friend class QDomDocument;
669  friend class QDomNode;
670 };
671 
672 
674 
675 #endif // QT_NO_DOM
676 
678 
680 
681 #endif // QDOM_H
double d
Definition: qnumeric_p.h:62
QDomText & operator=(const QDomText &)
Assigns x to this DOM text.
Definition: qdom.cpp:5385
#define Q_XML_EXPORT
Definition: qglobal.h:1458
QDomNode::NodeType nodeType() const
Returns ProcessingInstructionNode.
Definition: qdom.h:663
QDomNode at(int index) const
This function is provided for Qt API consistency.
Definition: qdom.h:265
friend class QDomDocument
Definition: qdom.h:247
bool isEmpty() const
Returns true if the map is empty; otherwise returns false.
Definition: qdom.h:385
QDomNamedNodeMap attributes() const
Returns a named node map of all attributes.
Definition: qdom.cpp:2370
static const struct QTextHtmlEntity entities[MAX_ENTITY]
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
QDomNode::NodeType nodeType() const
Returns AttributeNode.
Definition: qdom.h:466
void setAttribute(const QString &name, int value)
The number is formatted according to the current locale.
Definition: qdom.h:488
#define QT_MODULE(x)
Definition: qglobal.h:2783
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qdom.h:271
int count() const
This function is provided for Qt API consistency.
Definition: qdom.h:383
The QDomText class represents text data in the parsed XML document.
Definition: qdom.h:534
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
NodeType
This enum defines the type of the node:
Definition: qdom.h:131
The QDomProcessingInstruction class represents an XML processing instruction.
Definition: qdom.h:648
QDomNode::NodeType nodeType() const
Returns NotationNode.
Definition: qdom.h:601
NodeType nodeType() const
Returns the type of the node.
Definition: qdom.cpp:2256
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
static void clear(QVariant::Private *d)
Definition: qvariant.cpp:197
QDomNode::NodeType nodeType() const
Returns EntityReference.
Definition: qdom.h:639
QDomNode & operator=(const QDomNode &)
Assigns a copy of n to this DOM node.
Definition: qdom.cpp:2096
bool operator!=(QBool b1, bool b2)
Definition: qglobal.h:2026
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QDomDocumentType class is the representation of the DTD in the document tree. ...
Definition: qdom.h:282
The QDomNotation class represents an XML notation.
Definition: qdom.h:589
friend class QDomCDATASection
Definition: qdom.h:550
static QString toString(Register *reg, int type, bool *ok=0)
The QDomDocument class represents an XML document.
Definition: qdom.h:308
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
friend class QDomComment
Definition: qdom.h:445
QDomNode::NodeType nodeType() const
Returns CommentNode.
Definition: qdom.h:563
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
Definition: qmime_win.cpp:141
const char * name
QDomNode::NodeType nodeType() const
Returns DocumentTypeNode.
Definition: qdom.h:298
QDomNode::NodeType nodeType() const
Returns TextNode.
Definition: qdom.h:545
friend class QDomDocumentType
Definition: qdom.h:248
The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument...
Definition: qdom.h:399
int size() const
This function is provided for Qt API consistency.
Definition: qdom.h:270
static const char * data(const QByteArray &arr)
unsigned int uint
Definition: qglobal.h:996
QDomNodePrivate * impl
Definition: qdom.h:243
static QSvgNode * createTextNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
EncodingPolicy
This enum specifies how QDomNode::save() determines what encoding to use when serializing.
Definition: qdom.h:148
QDomNode::NodeType nodeType() const
Returns DocumentNode.
Definition: qdom.h:340
The QDomCDATASection class represents an XML CDATA section.
Definition: qdom.h:572
The QDomComment class represents an XML comment.
Definition: qdom.h:555
The QXmlReader class provides an interface for XML readers (i.e.
Definition: qxml.h:215
The QDomEntity class represents an XML entity.
Definition: qdom.h:610
static bool hasFeature(const QDockWidgetPrivate *priv, QDockWidget::DockWidgetFeature feature)
Definition: qdockwidget.cpp:74
QDomCharacterData & operator=(const QDomCharacterData &)
Assigns x to this character data.
Definition: qdom.cpp:4084
The QDomEntityReference class represents an XML entity reference.
Definition: qdom.h:631
QDomNodeListPrivate * impl
Definition: qdom.h:274
The QTextStream class provides a convenient interface for reading and writing text.
Definition: qtextstream.h:73
The QDomAttr class represents one attribute of a QDomElement.
Definition: qdom.h:449
The QDomNode class is the base class for all the nodes in a DOM tree.
Definition: qdom.h:128
int count() const
This function is provided for Qt API consistency.
Definition: qdom.h:269
QDomNode::NodeType nodeType() const
Returns ElementNode.
Definition: qdom.h:522
The QDomNodeList class is a list of QDomNode objects.
Definition: qdom.h:253
int size() const
This function is provided for Qt API consistency.
Definition: qdom.h:384
void setAttributeNS(const QString nsURI, const QString &qName, int value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qdom.h:503
friend class QDomText
Definition: qdom.h:444
void setAttributeNS(const QString nsURI, const QString &qName, uint value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qdom.h:505
quint16 index
The QDomCharacterData class represents a generic string in the DOM.
Definition: qdom.h:416
InvalidDataPolicy
This enum specifies what should be done when a factory function in QDomDocument is called with invali...
Definition: qdom.h:114
QDomImplementationPrivate * impl
Definition: qdom.h:122
QTextStream & operator<<(QTextStream &str, const QDomNode &node)
Writes the XML representation of the node node and all its children to the stream str...
Definition: qdom.cpp:2765
quint64 qulonglong
Definition: qglobal.h:952
void setAttribute(const QString &name, uint value)
The number is formatted according to the current locale.
Definition: qdom.h:490
The QXmlInputSource class provides the input data for the QXmlReader subclasses.
Definition: qxml.h:158
The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name...
Definition: qdom.h:362
The QIODevice class is the base interface class of all I/O devices in Qt.
Definition: qiodevice.h:66
QDomNode::NodeType nodeType() const
Returns CDATASection.
Definition: qdom.h:580
qint64 qlonglong
Definition: qglobal.h:951
#define QT_END_HEADER
Definition: qglobal.h:137
static void normalize(double &x, double &y)
The QDomImplementation class provides information about the features of the DOM implementation.
Definition: qdom.h:99
The QDomElement class represents one element in the DOM tree.
Definition: qdom.h:476
bool operator==(QBool b1, bool b2)
Definition: qglobal.h:2023
static bool isNull(const QVariant::Private *d)
Definition: qvariant.cpp:300
#define text
Definition: qobjectdefs.h:80
QDomNamedNodeMapPrivate * impl
Definition: qdom.h:391
QDomNode::NodeType nodeType() const
Returns EntityNode.
Definition: qdom.h:623
QDomNode::NodeType nodeType() const
Returns DocumentFragment.
Definition: qdom.h:407