Hi everyone,
At the minute I'm trying to learn XML and reading/parsing xml files with c++ but I seem to be a bit stuck :(
I've an xml file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<NormalisedFileCheck>
<ExpectedFiles>
<File>File_Num_1</File>
<File>File_Num_2</File>
<File>File_Num_3</File>
<File>File_Num_4</File>
<File>File_Num_5</File>
</ExpectedFiles>
<ValidProducts>
<Product>
<Family>Windows</Family>
<Name>Windows 7</Name>
</Product>
<Product>
<Family>Linux</Family>
<Name>Ubuntu</Name>
</Product>
</ValidProducts>
<Parameters>
<LogFolder>/opt/log/</LogFolder>
<CsvFileDirectory>/opt/csv/</TaqFileDirectory>
<DataFileDirectory>/opt/data/</DqrFileDirectory>
<NumberOfFiles>100</NumberOfFiles>
</Parameters>
</NormalisedFileCheck>
But I can't seem to get my program to read in anything the correct way - for example, for the <Parameters> bit, I just want it to read in each node under Parameters and display the tag name and text, so it should be say LogFolder : /opt/log
Does anyone know any good tutorials/guides for learning XML in c++? Most the ones I've come across are Java and my Java isn't the best these days (neglecting it for c++ :P)
any help would be much appreciated - I can post some code but at the minute it's very very untidy and a bit scatterbrained :(