Hello friends.

I have the following XML file:

Qt Code:
  1. <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/user/.config/application/config.xsd">
  2. <app>
  3. <applicationdisplayname>My Application Display Name</applicationdisplayname>
  4. <applicationhashkey>a9cd0d49e19637c0fea893d12ac87f64</applicationhashkey>
  5. <applicationname>MyApplicationName</applicationname>
  6. <applicationversion>1.0</applicationversion>
  7. <organizationname>MyOrganizationName</organizationname>
  8. <organizationdomain>https://www.myorganizationdomain.com</organizationdomain>
  9. <showsplash>1</showsplash>
  10. <iconimage>icono.png</iconimage>
  11. <mayorversion>5</mayorversion>
  12. <minorversion>0</minorversion>
  13. <pathversion>0</pathversion>
  14. </app>
  15. </settings>
To copy to clipboard, switch view to plain text mode 

I'm trying to go through this file, which I do correctly, the detail is when I try to make the following comparison:

Qt Code:
  1. if ( element.nodeValue ().isEmpty () ) {
  2.  
  3.  
  4. }
To copy to clipboard, switch view to plain text mode 

where element is a QDomElement, when making this comparison, either in the node configuration or node application, they return the following information:

Qt Code:
  1. My Application Display Namea9cd0d49e19637c0fea893d12ac87f64MyApplicationName1.0MyOrganizationNamehttps: //www.myorganizationdomain.com1icono.png500
To copy to clipboard, switch view to plain text mode 

I've been searching the documentation and forums for a long time but I do not get to achieve this

My point is, how do I determine if the node or application settings do not have values ​​directly as well as the applicationdisplayname node.

Or if there is any post in this forum that you have not seen, I would greatly appreciate the help.

Thanks in advance.