I am new to this community and I have moderate knowledge of python programming.
I was quickly referring some functions at sublimetext.com/docs/api-reference but couldn't figure out how to grab entire file in variable. I need to create a plugin to convert xml file to text list.
I know how to read dom using python's xml.dom.minidom module.
 Only the problem is to get entire xml file into variable.
After then it's easy to get text nodes.
from xml.dom.minidom import parse, parseString
dom = parseString(xml_string)
for entries in dom.getElementsByTagName('url'):
... # node processing
 And once processing is done, replace entire xml content with new text list.
Please guide me for these (point 1,2) missing functions.