[code.view]

[top] / python / PyMOTW / xml / etree / ElementTree / ElementTree_parse_opml.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     """Parse the input OPML file and show something about the results.
     """
     #end_pymotw_header
     
     from xml.etree import ElementTree
     
     with open('podcasts.opml', 'rt') as f:
         tree = ElementTree.parse(f)
     
     print tree
     
     
     
     

[top] / python / PyMOTW / xml / etree / ElementTree / ElementTree_parse_opml.py

contact | logmethods.com