Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24584

QDomNode::removeChild does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.4
    • XML: DOM
    • None
    • Linux Ubuntu 11.10, with g++ 4.6.1

    Description

      QDomNode::removeChild method in a short program fails to remove a Dom element.

      Unzip, make clean, make, ./testRemove
      The action is in main.cpp, which pulls in a local xml file, reports subelements, tries to remove one subelement, then reports what's left.
      removeChild (line 55) compiles, is called, but does nothing to the document, nor reports any error condition. (It returns a non-Null QDomNode).

      The GetDom class is a wrapper designed to load any XML source file, then later write it back out. It works correctly on large XML files – attributes can be changed, for example.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            wbarrett William A. Barrett
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes