[IronPython] Newbie Q - Simple HTTP XML Capture?

S C igdev at hotmail.com
Thu Sep 27 21:07:03 CEST 2007


 
This runs in the vanilla Python 2.4 interpreter on Win32 but not if I paste it into the Visual Studio 2005 (with IronPython VSSIP installed) IDE:
 
 
import urllib
from xml.dom import minidom
remoteSock = urllib.urlopen("http://10.2.5.28:18/PolicyGroupServerAsset.xml")
#policyXml = remoteSock.read()
#print policyXml
policyXmlDoc = minidom.parse(remoteSock)
remoteSock.close()
print policyXmlDoc.toxml()
 
What steps should I take to convert this to something working?
 
Thanks.
 
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070927/8a512066/attachment.html>


More information about the Ironpython-users mailing list