PARSING XML ISN'T ALL THAT EASY FOR ME IT SEEMS

PARSING XML ISN'T ALL THAT EASY FOR ME IT SEEMS

Hello.  Trying to parse basic xml from multiple examples and not passing the bar.  Here is a jsfiddle of what I thought would work when using xml that's in the html file.  it doesn't.  could someone please try to catch what i'm missing?  thanks  -dave


html:

<p id="output">asd</p>

<script>
$(document).ready(function()
{

var xml = "<RecentTutorials>
  <Tutorial author="The Reddest">
    <Title>Silverlight and the Netflix API</Title>
    <Categories>
      <Category>Tutorials</Category>
      <Category>Silverlight 2.0</Category>
      <Category>Silverlight</Category>
      <Category>C#</Category>
      <Category>XAML</Category>
    </Categories>
    <Date>1/13/2009</Date>
  </Tutorial>
  <Tutorial author="The Hairiest">
    <Title>Cake PHP 4 - Saving and Validating Data</Title>
    <Categories>
      <Category>Tutorials</Category>
      <Category>CakePHP</Category>
      <Category>PHP</Category>
    </Categories>
    <Date>1/12/2009</Date>
  </Tutorial>
  <Tutorial author="The Tallest">
    <Title>Silverlight 2 - Using initParams</Title>
    <Categories>
      <Category>Tutorials</Category>
      <Category>Silverlight 2.0</Category>
      <Category>Silverlight</Category>
      <Category>C#</Category>
      <Category>HTML</Category>
    </Categories>
    <Date>1/6/2009</Date>
</Tutorial>
  <Tutorial author="The Fattest">
    <Title>Controlling iTunes with AutoHotkey</Title>
    <Categories>
      <Category>Tutorials</Category>
      <Category>AutoHotkey</Category>
    </Categories>
    <Date>12/12/2008</Date>
  </Tutorial>
</RecentTutorials>",
 xmlDoc = $.parseXML( xml ),
 xmlx = $( xmlDoc ),
    $(xmlx).find("Tutorial").each(function()
  {
    $("#output").append($(this).attr("author") + "<br />");
    });
    });
</script>