ofxXmlSettings get tags

Hi all

This seems simple but Is there a way to get a list of tags from ofxmlsettings without knowing the name of the tags that might exist?

Sample xml

<xml>
    <one>value1</one>
    <two>value2</two>
</xml>

Code

xml.pushTag("xml");
vector<string> tags = xml.getTagsAtThisLevel();
xml.popTag();
        
for(int i = 0; i < tags.size(); i++)
{
    ofLogNotice() << ofToString(i) << ". " << tags[i];
}

output.

0. one
1. two

Cheers
Az

This is not a solution for the question you ask but, as long as you maintain and control yourself the xml file, you can achieve the same result with :

<xml>
<values>
<value kind=one>Foo</value>
<value kind=two>Bar</value>
</values>
</xml>