| 76 |
|
UtilXmlTools::getAllXpathElements(xPathExpression,this->document,nodesToInsertion); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
< |
if(nodesToInsertion[0].type()==pugi::node_null){ |
| 79 |
> |
if(nodesToInsertion.isEmpty() || nodesToInsertion[0].type()==pugi::node_null){ |
| 80 |
|
|
| 81 |
|
QString errMessage; |
| 82 |
|
|
| 137 |
|
UtilXmlTools::getAllXpathElements(xPathExpression,this->document,nodesToDeletion); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
< |
if(nodesToDeletion[0].type()==pugi::node_null){ |
| 140 |
> |
if(nodesToDeletion.isEmpty() || nodesToDeletion[0].type()==pugi::node_null){ |
| 141 |
|
|
| 142 |
|
QString errMessage; |
| 143 |
|
|