Getting a list of configuration subnodes?

Say I have a configuration node. And theres several subnodes within that node containing some values. How would one go about getting a list of all the subnodes in the form of strings? Example of the structure:
RootNode {
A {
key1=value1
}
B {
key2=value2
}
}

I would want a list of key1, and key2 as strings. Ive gone through the documentation and tried a bunch of things that have failed. I’ve gotten so confused by this I’ve practically given up. Any help would be appreciated.

Try ConfigurationNode.getChildrenMap().