I'm a beginner. How to define a XSD validation from a folder structure XML (just like disk directory hiberarchy structure)?

1. I have a XML file just like disk directory hiberarchy structure, every Folder node have zero, one and more Bookmark or Folder nodes, I don't know how to write a XSD validation for the XML, could you help me?

2. The attributes both Id and BId are the string of the Uniqueidentifier field in SQL 2005, how to validate it in the XSD?

3. Furthermore, is there tool which can made a basica XSD from a XML? Many Thanks!



//----------------------------------------------------------

<?xml version="1.0" encoding="utf-8" ?>

<Folder Name="Root" Id="a6dce8fe-749c-4e38-ab2f-3d03d9711b3d">

<Bookmark BId="f8dce8hj-846c-4e38-ab2f-6d03d9711b80">
<Title>CodeGuru Forums - ASP.NET</Title>
<Url>http://www.codeguru.com/</Url>
<Description>This is a good site</Description>
<InputDate> 2005-12-23</InputDate>
<IsPrivate>False</IsPrivate>
</Bookmark>

<Bookmark BId="fgdce3ak-846c-4e38-ab2f-8i03d9711b23">
<Title>We'll e-mail your press release</Title>
<Url>http://www.dpdirectory.com/</Url>
<Description>This is a good site</Description>
<InputDate> 2004-11-23</InputDate>
<IsPrivate>False</IsPrivate>
</Bookmark>


<Folder Name="Card1" Id="b8dcf8fe-749c-4e38-ab2f-6d03d9711b8j">

<Bookmark BId="ghdce3ak-456c-4e38-ab2f-5h02d9711b67">
<Title>Welcome to ePassporte</Title>
<Url>https://www.epassporte.com/</Url>
<Description>Very Good</Description>
<InputDate> 2004-08-12</InputDate>
<IsPrivate>True</IsPrivate>
</Bookmark>

<Bookmark BId="fkdfh3a8-456c-6y38-jk2f-5h0gh9711b45">
<Title>Keystone DreamCard</Title>
<Url>https://www.mydreamcardonline.com</Url>
<Description>Please note</Description>
<InputDate> 2004-09-25</InputDate>
<IsPrivate>True</IsPrivate>
</Bookmark>

<Folder Name="Card1in1" Id="l9dcf8fe-689c-0935-fghj-7u03d9711b5t">
<Bookmark BId="ghdfh3a8-896c-6y40-jkfg-5h0gh9711b89">
<Title>The News of CNN</Title>
<Url>https://www.cnn.com</Url>
<Description>Please note</Description>
<InputDate> 2004-09-23</InputDate>
<IsPrivate>True</IsPrivate>
</Bookmark>
</Folder>

</Folder>


<Folder Name="Card2" Id="67dcf8fe-734c-4e56-ab2f-6d03d9711bfg">

</Folder>


</Folder>

//-------------------------------------------------------------------