Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.7.4
-
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.