I'm trying to load an XML file with this code snippet:
Code: Select all
wxXmlDocument doc;
CameraParameters *cp1 = new CameraParameters();
if(!doc.Load("/home/pi/Desktop/Prova/CameraGUI_OpenGL/bin/Debug/Settings.xml"));
return false;
if(doc.GetRoot()->GetName() != "dstSettings")
return false;
I'm sure that the path I'm providing is correct nonetheless if I try to execute in debug mode using Codeblocks I always enter in the first 'return false'.
Could it be an error in my xml file?
Code: Select all
<?xml version="1.0" standalone="yes"?>
<dstSettings>
<Camera CameraSerialNumber="22042713" OffsetX="0" OffsetY="0" Exposure="1000" ReverseX="false" ReverseY="false"/>
</dstSettings>