开发者

Anyway to read a .plist from a firefox add-on?

Is there a pre-existing XPCOM guy that will let me interrogate a .plist file from Javascript, or do I need to use nsIFile and parse the XML myself?

(For background, there is a version number in a directory structure I don't contro开发者_StackOverflow社区l that I need to read from a .plist in order to be future-proof.)


I don't know what a .plist is but I gather it's some sort of XML.

If you're parsing XML, don't use nsIFile directly, use this: Parsing and serializing XML. You might also like to use E4X.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜