equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtXml module of the Qt Toolkit. |
7 ** This file is part of the QtXml module of the Qt Toolkit. |
8 ** |
8 ** |
2594 |
2594 |
2595 If \a newChild is a QDomElement and this node is a QDomDocument that |
2595 If \a newChild is a QDomElement and this node is a QDomDocument that |
2596 already has an element node as a child, \a newChild is not added as |
2596 already has an element node as a child, \a newChild is not added as |
2597 a child and a null node is returned. |
2597 a child and a null node is returned. |
2598 |
2598 |
2599 Calling this function on a null node(created, for example, with the |
2599 Returns a new reference to \a newChild on success or a \link |
2600 default constructor) does nothing. |
2600 isNull() null node\endlink on failure. |
2601 |
2601 |
2602 The DOM specification disallow inserting attribute nodes, but due |
2602 Calling this function on a null node(created, for example, with |
2603 to historical reasons QDom accept them nevertheless. |
2603 the default constructor) does nothing and returns a \link isNull() |
|
2604 null node\endlink. |
|
2605 |
|
2606 The DOM specification disallow inserting attribute nodes, but for |
|
2607 historical reasons, QDom accepts them anyway. |
2604 |
2608 |
2605 \sa insertBefore() insertAfter() replaceChild() removeChild() |
2609 \sa insertBefore() insertAfter() replaceChild() removeChild() |
2606 */ |
2610 */ |
2607 QDomNode QDomNode::appendChild(const QDomNode& newChild) |
2611 QDomNode QDomNode::appendChild(const QDomNode& newChild) |
2608 { |
2612 { |
2967 } |
2971 } |
2968 return QDomElement(); |
2972 return QDomElement(); |
2969 } |
2973 } |
2970 |
2974 |
2971 /*! |
2975 /*! |
2972 Returns the next sibilng element with tag name \a tagName if \a tagName |
2976 Returns the next sibling element with tag name \a tagName if \a tagName |
2973 is non-empty; otherwise returns any next sibling element. |
2977 is non-empty; otherwise returns any next sibling element. |
2974 Returns a null element if no such sibling exists. |
2978 Returns a null element if no such sibling exists. |
2975 |
2979 |
2976 \sa firstChildElement() previousSiblingElement() lastChildElement() |
2980 \sa firstChildElement() previousSiblingElement() lastChildElement() |
2977 */ |
2981 */ |
3481 // Dont use normal insert function since we would create infinite recursion |
3485 // Dont use normal insert function since we would create infinite recursion |
3482 entities->map.insertMulti(p->nodeName(), p); |
3486 entities->map.insertMulti(p->nodeName(), p); |
3483 if (p->isNotation()) |
3487 if (p->isNotation()) |
3484 // Dont use normal insert function since we would create infinite recursion |
3488 // Dont use normal insert function since we would create infinite recursion |
3485 notations->map.insertMulti(p->nodeName(), p); |
3489 notations->map.insertMulti(p->nodeName(), p); |
|
3490 p = p->next; |
3486 } |
3491 } |
3487 } |
3492 } |
3488 |
3493 |
3489 QDomDocumentTypePrivate::~QDomDocumentTypePrivate() |
3494 QDomDocumentTypePrivate::~QDomDocumentTypePrivate() |
3490 { |
3495 { |