45 #include <QtCore/qstring.h> 135 CDATASectionNode = 4,
136 EntityReferenceNode = 5,
138 ProcessingInstructionNode = 7,
141 DocumentTypeNode = 10,
142 DocumentFragmentNode = 11,
145 CharacterDataNode = 22
150 EncodingFromDocument = 1,
151 EncodingFromTextStream = 2
167 bool hasChildNodes()
const;
168 QDomNode cloneNode(
bool deep =
true)
const;
170 bool isSupported(
const QString& feature,
const QString& version)
const;
185 bool hasAttributes()
const;
189 void setNodeValue(
const QString&);
191 void setPrefix(
const QString& pre);
195 bool isCDATASection()
const;
196 bool isDocumentFragment()
const;
197 bool isDocument()
const;
198 bool isDocumentType()
const;
199 bool isElement()
const;
200 bool isEntityReference()
const;
202 bool isEntity()
const;
203 bool isNotation()
const;
204 bool isProcessingInstruction()
const;
205 bool isCharacterData()
const;
206 bool isComment()
const;
239 int lineNumber()
const;
240 int columnNumber()
const;
269 inline int count()
const {
return length(); }
270 inline int size()
const {
return length(); }
271 inline bool isEmpty()
const {
return length() == 0; }
295 QString internalSubset()
const;
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 );
383 int count()
const {
return length(); }
384 inline int size()
const {
return length(); }
385 inline bool isEmpty()
const {
return length() == 0; }
388 bool contains(
const QString& name)
const;
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);
458 bool specified()
const;
489 { setAttribute(name,
qlonglong(value)); }
492 void setAttribute(
const QString& name,
float value);
493 void setAttribute(
const QString& name,
double value);
494 void removeAttribute(
const QString& name);
499 bool hasAttribute(
const QString& name)
const;
504 { setAttributeNS(nsURI, qName,
qlonglong(value)); }
506 { setAttributeNS(nsURI, qName,
qulonglong(value)); }
509 void setAttributeNS(
const QString nsURI,
const QString& qName,
double value);
510 void removeAttributeNS(
const QString& nsURI,
const QString& localName);
514 bool hasAttributeNS(
const QString& nsURI,
const QString& localName)
const;
518 void setTagName(
const QString& name);
QDomText & operator=(const QDomText &)
Assigns x to this DOM text.
QDomNode::NodeType nodeType() const
Returns ProcessingInstructionNode.
QDomNode at(int index) const
This function is provided for Qt API consistency.
friend class QDomDocument
bool isEmpty() const
Returns true if the map is empty; otherwise returns false.
QDomNamedNodeMap attributes() const
Returns a named node map of all attributes.
static const struct QTextHtmlEntity entities[MAX_ENTITY]
#define QT_END_NAMESPACE
This macro expands to.
QDomNode::NodeType nodeType() const
Returns AttributeNode.
void setAttribute(const QString &name, int value)
The number is formatted according to the current locale.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
int count() const
This function is provided for Qt API consistency.
The QDomText class represents text data in the parsed XML document.
NodeType
This enum defines the type of the node:
The QDomProcessingInstruction class represents an XML processing instruction.
QDomNode::NodeType nodeType() const
Returns NotationNode.
NodeType nodeType() const
Returns the type of the node.
The QByteArray class provides an array of bytes.
static void clear(QVariant::Private *d)
QDomNode::NodeType nodeType() const
Returns EntityReference.
QDomNode & operator=(const QDomNode &)
Assigns a copy of n to this DOM node.
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
The QDomDocumentType class is the representation of the DTD in the document tree. ...
The QDomNotation class represents an XML notation.
friend class QDomCDATASection
static QString toString(Register *reg, int type, bool *ok=0)
The QDomDocument class represents an XML document.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
QDomNode::NodeType nodeType() const
Returns DocumentTypeNode.
QDomNode::NodeType nodeType() const
Returns TextNode.
friend class QDomDocumentType
The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument...
int size() const
This function is provided for Qt API consistency.
static const char * data(const QByteArray &arr)
static QSvgNode * createTextNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
EncodingPolicy
This enum specifies how QDomNode::save() determines what encoding to use when serializing.
QDomNode::NodeType nodeType() const
Returns DocumentNode.
The QDomCDATASection class represents an XML CDATA section.
The QXmlReader class provides an interface for XML readers (i.e.
The QDomEntity class represents an XML entity.
QDomCharacterData & operator=(const QDomCharacterData &)
Assigns x to this character data.
The QDomEntityReference class represents an XML entity reference.
QDomNodeListPrivate * impl
The QTextStream class provides a convenient interface for reading and writing text.
The QDomAttr class represents one attribute of a QDomElement.
The QDomNode class is the base class for all the nodes in a DOM tree.
int count() const
This function is provided for Qt API consistency.
QDomNode::NodeType nodeType() const
Returns ElementNode.
The QDomNodeList class is a list of QDomNode objects.
int size() const
This function is provided for Qt API consistency.
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...
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...
The QDomCharacterData class represents a generic string in the DOM.
InvalidDataPolicy
This enum specifies what should be done when a factory function in QDomDocument is called with invali...
QDomImplementationPrivate * impl
QTextStream & operator<<(QTextStream &str, const QDomNode &node)
Writes the XML representation of the node node and all its children to the stream str...
void setAttribute(const QString &name, uint value)
The number is formatted according to the current locale.
The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name...
The QIODevice class is the base interface class of all I/O devices in Qt.
QDomNode::NodeType nodeType() const
Returns CDATASection.
static void normalize(double &x, double &y)
The QDomImplementation class provides information about the features of the DOM implementation.
The QDomElement class represents one element in the DOM tree.
bool operator==(QBool b1, bool b2)
static bool isNull(const QVariant::Private *d)
QDomNamedNodeMapPrivate * impl
QDomNode::NodeType nodeType() const
Returns EntityNode.
QDomNode::NodeType nodeType() const
Returns DocumentFragment.