A quick question: Ask parent of a root node, I thought it should return NULL, but actually not NULL. So I ask what is the name of this parent node. It returns “#document”. if (!root.parentNode().isNull()) { QString name = root.parentNode().nodeName(); // “#document” ??? } Does it sounds right? Thanks, Lingfa