hi Amy,
On Fri, Nov 9, 2012 at 1:10 AM, Amy wrote:
> Don't forget you have to remove the `` part of the XML
> before it will parse properly:
>
> content = Shell.get_file_contents_utf8_sync('/path/to/file'); // or
> your preferred file-reading function
> // remove (developer.mozilla.org
Don't forget you have to remove the `` part of the XML
before it will parse properly:
content = Shell.get_file_contents_utf8_sync('/path/to/file'); // or
your preferred file-reading function
// remove (developer.mozilla.org/en-US/docs/E4X)
content =
content.replace(/^<\?xml\s+version
You can use E4X to parse XML. It's a fancy language thing that's a bit hard
to get used to, and it's deprecated, but it works.
https://developer.mozilla.org/en-US/docs/E4X
On Thu, Nov 8, 2012 at 7:12 AM, alok barsode wrote:
> Hi,
>
> I am writing a gnome shell extension for oFono.
> I need to