[Project_owners] nsIXMLHttpRequest woes

Nickolay Ponomarev asqueella at gmail.com
Fri May 19 03:13:32 EDT 2006

On 5/19/06, Eric H. Jung <grimholtz at yahoo.com> wrote:
> Hi Alex,
> Thanks for the reply. The file isn't really a XUL file, just XML. It
> looks like this:
> <?xml-stylesheet href="foxyproxy.css" type="text/css"?>
> <!DOCTYPE overlay SYSTEM "chrome://foxyproxy/locale/foxyproxy.dtd">
> <root xmlns="http://foxyproxy.mozdev.org/">
>   <i18n id="foxyproxy.proxydns.label"
>     value="&foxyproxy.proxydns.label;"/>
>   <i18n id="foxyproxy.proxydns.accesskey"
>     value="&foxyproxy.proxydns.accesskey;"/>
> ...
> </root>
> So I've renamed it with an .xml extension. Anway, instead of reading
> the file directly, what I really want is for the entities to be
> processsed by an XML parser into localized strings. Is there a way to
> create a DOM from this programmatically (perhaps by creating a
> <browser/> and using this as the source?) Once again, this is an XPCOM
> JS component.
> Any other ideas? I've got a feeling if I use your ChromeFile interface,
> I'll just get the entities without translation.
> Thanks,
> Eric

Why don't you just use the string bundles?


More information about the Project_owners mailing list