<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Parse the given XML document and print out the text content of the "title" element.
<doc>
  <title>This is a title</title>
</doc><|im_end|>
<|im_start|>assistant
import xml.etree.ElementTree as et

root = et.fromstring("<doc><title>This is a title</title></doc>")
title = root.find('title')
print(title.text)<|im_end|>
