XML manipulation with Jquery

Hi

I am starting with Jquery and I need some help understanding how to do some things I could easily do with AS3.

For example. I have a XML:

var xml = “<xmlRoot><h1>this is a tittle 1</h1><h2>this is a sub-title</h2><p>this is a paragraph</><h1>this is a tittle 1</h1><h2>this is a sub-title</h2><p>this is a paragraph</></xmlRoot>”;

I want to:

1 - know how many childnodes I have inside xmlRoot;
2 - no the tag name of each one (supposing I am loading an external XML);

Thanks for any tip.