Re: XML in an extension
- From: Amy <mathematical coffee gmail com>
- To: Rovanion Luckey <rovanion luckey gmail com>
- Cc: Megh Parikh <meghjp gmail com>, "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: XML in an extension
- Date: Thu, 19 Dec 2013 09:54:18 +1000
And for XML you use E4X:
content = Shell.get_file_contents_utf8_sync('/path/to/file'); // or your preferred file-reading function
content = content.replace(/^<\?xml\s+version\s*=\s*(["']).*?\1[^?]*\?>/, '');
xml = new XML(content);
On 19 December 2013 08:15, Rovanion Luckey
<rovanion luckey gmail com> wrote:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]