Hello friends.
I have the following XML file:
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/user/.config/application/config.xsd">
<app>
<applicationdisplayname>My Application Display Name</applicationdisplayname>
<applicationhashkey>a9cd0d49e19637c0fea893d12ac87f64</applicationhashkey>
<applicationname>MyApplicationName</applicationname>
<applicationversion>1.0</applicationversion>
<organizationname>MyOrganizationName</organizationname>
<organizationdomain>https://www.myorganizationdomain.com</organizationdomain>
<showsplash>1</showsplash>
<iconimage>icono.png</iconimage>
<mayorversion>5</mayorversion>
<minorversion>0</minorversion>
<pathversion>0</pathversion>
</app>
</settings>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/user/.config/application/config.xsd">
<app>
<applicationdisplayname>My Application Display Name</applicationdisplayname>
<applicationhashkey>a9cd0d49e19637c0fea893d12ac87f64</applicationhashkey>
<applicationname>MyApplicationName</applicationname>
<applicationversion>1.0</applicationversion>
<organizationname>MyOrganizationName</organizationname>
<organizationdomain>https://www.myorganizationdomain.com</organizationdomain>
<showsplash>1</showsplash>
<iconimage>icono.png</iconimage>
<mayorversion>5</mayorversion>
<minorversion>0</minorversion>
<pathversion>0</pathversion>
</app>
</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:
if ( element.nodeValue ().isEmpty () ) {
}
if ( element.nodeValue ().isEmpty () ) {
}
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:
My Application Display Namea9cd0d49e19637c0fea893d12ac87f64MyApplicationName1.0MyOrganizationNamehttps: //www.myorganizationdomain.com1icono.png500
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.
Bookmarks