QDomNode
QDomNode
Public Functions
QDomNode() | |
QDomNode(const QDomNode &n) | |
~QDomNode() | |
QDomNode | appendChild(const QDomNode &newChild) |
QDomNamedNodeMap | attributes() const |
QDomNodeList | childNodes() const |
void | clear() |
QDomNode | cloneNode(bool deep = true) const |
int | columnNumber() const |
QDomNode | firstChild() const |
QDomElement | firstChildElement(const QString &tagName = QString()) const |
bool | hasAttributes() const |
bool | hasChildNodes() const |
QDomNode | insertAfter(const QDomNode &newChild, const QDomNode &refChild) |
QDomNode | insertBefore(const QDomNode &newChild, const QDomNode &refChild) |
bool | isAttr() const |
bool | isCDATASection() const |
bool | isCharacterData() const |
bool | isComment() const |
bool | isDocument() const |
bool | isDocumentFragment() const |
bool | isDocumentType() const |
bool | isElement() const |
bool | isEntity() const |
bool | isEntityReference() const |
bool | isNotation() const |
bool | isNull() const |
bool | isProcessingInstruction() const |
bool | isSupported(const QString &feature, const QString &version) const |
bool | isText() const |
QDomNode | lastChild() const |
QDomElement | lastChildElement(const QString &tagName = QString()) const |
int | lineNumber() const |
QString | localName() const |
QDomNode | namedItem(const QString &name) const |
QString | namespaceURI() const |
QDomNode | nextSibling() const |
QDomElement | nextSiblingElement(const QString &tagName = QString()) const |
QString | nodeName() const |
QDomNode::NodeType | nodeType() const |
QString | nodeValue() const |
void | normalize() |
QDomDocument | ownerDocument() const |
QDomNode | parentNode() const |
QString | prefix() const |
QDomNode | previousSibling() const |
QDomElement | previousSiblingElement(const QString &tagName = QString()) const |
QDomNode | removeChild(const QDomNode &oldChild) |
QDomNode | replaceChild(const QDomNode &newChild, const QDomNode &oldChild) |
void | save(QTextStream &stream, int indent, QDomNode::EncodingPolicy encodingPolicy = QDomNode::EncodingFromDocument) const |
void | setNodeValue(const QString &v) |
void | setPrefix(const QString &pre) |
QDomAttr | toAttr() const |
QDomCDATASection | toCDATASection() const |
QDomCharacterData | toCharacterData() const |
QDomComment | toComment() const |
QDomDocument | toDocument() const |
QDomDocumentFragment | toDocumentFragment() const |
QDomDocumentType | toDocumentType() const |
QDomElement | toElement() const |
QDomEntity | toEntity() const |
QDomEntityReference | toEntityReference() const |
QDomNotation | toNotation() const |
QDomProcessingInstruction | toProcessingInstruction() const |
QDomText | toText() const |
bool | operator!=(const QDomNode &n) const |
QDomNode & | operator=(const QDomNode &n) |
bool | operator==(const QDomNode &n) const |
--------------------------------------
enum QDomNode::NodeType
This enum defines the type of the node:
Constant | Value | Description |
---|---|---|
QDomNode::ElementNode |
1 |
|
QDomNode::AttributeNode |
2 |
|
QDomNode::TextNode |
3 |
|
QDomNode::CDATASectionNode |
4 |
|
QDomNode::EntityReferenceNode |
5 |
|
QDomNode::EntityNode |
6 |
|
QDomNode::ProcessingInstructionNode |
7 |
|
QDomNode::CommentNode |
8 |
|
QDomNode::DocumentNode |
9 |
|
QDomNode::DocumentTypeNode |
10 |
|
QDomNode::DocumentFragmentNode |
11 |
|
QDomNode::NotationNode |
12 |
|
QDomNode::BaseNode |
21 |
A QDomNode object, i.e. not a QDomNode subclass. |
QDomNode::CharacterDataNode |
22 |
QDomDocument d; d.setContent(someXML); QDomNode n = d.firstChild(); while (!n.isNull()) { if (n.isElement()) { QDomElement e = n.toElement(); cout << "Element name: " << e.tagName() << endl; break; } n = n.nextSibling(); }
############################
QQ 3087438119