Re: Parsing XML in shell extension

2015-10-28 Thread Jay Strict
On 17.10.2015 22:57, Florian Müllner wrote: > On Sat, Oct 17, 2015 at 10:11 PM, Jay Strict wrote: >> const XMLConfigParser = new Lang.Class({ >> Name: 'XMLConfigParser', >> Extends: GLib.MarkupParser, > > GMarkupParser is not a GObject, so you cannot inherit from it. In > general, support

Re: Parsing XML in shell extension

2015-10-17 Thread Florian Müllner
On Sat, Oct 17, 2015 at 10:11 PM, Jay Strict wrote: > const XMLConfigParser = new Lang.Class({ > Name: 'XMLConfigParser', > Extends: GLib.MarkupParser, GMarkupParser is not a GObject, so you cannot inherit from it. In general, support for anything below GObject is fairly limited - it work

Re: Parsing XML in shell extension

2015-10-17 Thread Jay Strict
On 06.10.2015 17:57, Jay Strict wrote: > 2) I want to read and parse the XML file that Syncthing uses as its > configuration file [4]. What is the best way to do so? I found the > Simple XML Subset Parser [5] in the GLib library and I think this would > be suitable, as the config file does not look