I have a question regarding the extraction of parameter values from an xml file using pugixml. I have an XML file with a hierarchical structure, and would like to retrieve the value associated with a specific parameter.
Part of the file looks like this:
<Path>
<HardParameters>
</HardParameters>
<AdjustableParameters>
<Parameter name="Path Bandwidth" units="rad/s">
<symbol>wC</symbol>
<description>Closed loop BW</description>
<value>3.9</value>
<reference>IEEE</reference>
</Parameter>
<Parameter name="Foo" units="">
<symbol>zeta</symbol>
<description>Foo ratio </description>
<value>4.1</value>
<reference>IEEE</reference>
</Parameter>
</AdjustableParameters>
</Path>
For instance, I would like to retrieve the value 4.1 of the Foo ratio. I wonder if the function
xpath_variable* get( const char_t* name );
is the one I should use in this case? And how should it be used in such case? Just pass the name of the parameter as an argument?