Advertisement
brandizzi

Creating a xml.dom.minidom.Document object in doctest

Feb 26th, 2018
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1.     >>> doc = xml.dom.minidom.parseString(
  2.     ...     '''
  3.    ...     <html>
  4.    ...         <body>
  5.    ...             <div class="a b"><span class="a"></span></div>
  6.    ...         </body>
  7.    ...     </html>
  8.    ...     ''')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement