Parsing hostname should return a dictionary with the name and type attributes of the hostname and not just a string of hostnames names:
According to DTD:
<!ELEMENT hostname EMPTY >
<!ATTLIST hostname
name CDATA #IMPLIED
type %hostname_types; #IMPLIED
>
Example of XML output:
<hostnames>
<hostname name="scanme.org" type="user"/>
<hostname name="scanme.nmap.org" type="PTR"/>
</hostnames>
Currently hostnames are just string of names