开发者

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

开发者 https://www.devze.com 2023-01-11 01:30 出处:网络
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?

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

精彩评论

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

关注公众号