On the example, because they first show you the function setToParent(), you will then need to set the full path. However, I get your point, it’s not very clear.
The /> means that is empty. Most of these functions are relative to where you are on the file structure. So, based on you example file, if you do getNumChildren() when set to <highscores> you get 2. But if you do it set to <highscore id="0"> you get 4.
For example, if you wanted to add <test> to the file you loaded (this means having data, heure, num, score and test per score id) you could do something like:
for (int i = 0; i < m_xml.getNumChildren(); i++) {
m_xml.setToChild(i);
m_xml.addValue("test", i * 100);
m_xml.setToParent();
}
What I did was: I was on the root <highscores> and for each child (each <highscore id="i">) I stepped in, added a value, and then went up and on to the next child.