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.
精彩评论