Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript AJAX Basics (retiring) AJAX Concepts Create an XML File

BRITTANY PASHA
BRITTANY PASHA
601 Points

Not sure why the error message states there is "extra content at the end of the document".

Trying to add an xml tage, but I'm receiving an error message.

songs.xml
<?xml version="1.0" encoding="UTF-8"?>
<songs>

</songs>
<song></song>

1 Answer

the song tag needs to be nested inside the songs

<songs>
<song>

</song>
</songs>