Re: XML parser under an extension



Le dimanche 01 janvier 2012 à 15:47 +0330, bijan binaee a écrit :
> Hi
> 
> I'm very sorry about my lot's of question
> 
> I want know how can i parse XML file and extract element in gnome
> shell extension
If the file you want to parse is simple enough, you may be able to use
GLib's XML parser, which doesn't support the whole XML format. The
advantage is that you can easily use it from JS like any other GLib
function. See
http://developer.gnome.org/glib/stable/glib-Simple-XML-Subset-Parser.html

If you need the full libxml2 features, I'm not sure at all this can be
done from JS ATM.


Cheers




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