How to enumerate XML config nodes

Please post support and help requests here.
dbarzo
Posts: 40
Joined: 14 Jan 2013, 17:15
Location: Italy

How to enumerate XML config nodes

Postby dbarzo » 23 May 2013, 16:54

Hi,

in my application I have a XML configuration file.
Since I have to process it (and not only retrieve values) I thought to use XMLConfiguration class to avoid parsing xml by hand with Poco::XML.
I need to enumerate a branch but I noted that the XMLConfiguration::enumerate is protected, why?
Is there another way to do this without deriving from the class?

Regards,
Daniele.

guenter
Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: How to enumerate XML config nodes

Postby guenter » 23 May 2013, 21:55

Use method keys(), which is public (inherited from Poco::Util::AbstractConfiguration) and internally uses enumerate().

dbarzo
Posts: 40
Joined: 14 Jan 2013, 17:15
Location: Italy

Re: How to enumerate XML config nodes

Postby dbarzo » 24 May 2013, 09:07

Hi guenter,

thanks a lot! I had not seen it! :D

Regards,
Daniele.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests

cron