src/xml/dom/qdom.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 7 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
  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 */