Re: Glib::KeyFile bug?

On Tue, 2008-06-24 at 09:47 +0200, Holger Berndt wrote:
> Robert Pearce schrieb:
> > On Mon, 23 Jun 2008 09:14:39 -0400 Damon Register wrote:
> >> All of the xml examples I found just read the entire file and print
> >> the results.  Do the xml methods not really support the random
> >> access as does the Glib::KeyFile::get_string ?
> > 
> > If you want to do random access of "XML" data, you first need to define
> > what the structure of that data really is, then define some suitable
> > equivalent representation in your language of choice.
> On a side note: Random access to parts of an xml document is possible 
> with the XPath language. Some xml parsers (like libxml2) implement that 
> language.

I think you would use xmlpp::Node::find() for that, after learning about
the XPath syntax.

murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]