Excellent idea! I didn't do that because I hadn't thought of it. I also
noticed other extension (For good or bad) use the technique I
previously described; that's where I got the idea.... bad ideas
proliferate :)
--- Didier Ernotte <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Why don't you simple read the DTD file as a plain text file, and use
> a
> regexp to extract what you need, instead of creating a XML file that
> maps one to one to all your ENTITY in the DTD file and hopinp that
> the
> XML reader will substitute the correct ENTITY value ? It should be
> simplier to maintain, only one file (the DTD), instead of two (DTD +
> XML).
>
> Didier
>
> --- Nickolay Ponomarev <[EMAIL PROTECTED]> wrote:
>
> > On 5/19/06, Eric H. Jung <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > --- Nickolay Ponomarev <[EMAIL PROTECTED]> wrote:
> > >
> > > > On 5/19/06, Alex Vincent <[EMAIL PROTECTED]> wrote:
> > > > > > var req =
> > > > Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
> > > > > > .createInstance(Components.interfaces.nsIXMLHttpRequest);
> > > > > >
> > > > > > req.open("GET", "chrome://foxyproxy/content/strings.xul",
> > false);
> > > > >
> > > > > XMLHttpRequest doesn't work for chrome URL's (HTTP and chrome
> > are
> > > > > different protocols entirely). Personally, I recommend you
> > look
> > > > into
> > > > > DOMParser and the ChromeFile interface I wrote for jslib.
> > > > >
> > > > Yes it does. It's neither restricted to XML nor to HTTP.
> > > >
> > > > Eric: does e.item(i) work?
> > > >
> > >
> > > Hi Nickolay,
> > >
> > > Good thinking! (I know item() is from the W3C DOM spec).
> > Unfortunately,
> > > no, I get the same problem--undefined. What is strange is that
> > > list.length is 35 (which is the correct number), so I know the
> > parser
> > > is working to some extent...
> > >
> > What if you serialize that document using the XMLSerializer?
> >
> > Nickolay
> > _______________________________________________
> > Project_owners mailing list
> > [email protected]
> > http://mozdev.org/mailman/listinfo/project_owners
> >
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners