# XML manipulation with Jquery

**URL:** <https://forum.kirupa.com/t/xml-manipulation-with-jquery/320237>\
**Category:** web dev\
**Created:** [March 17, 2011, 3:59pm UTC](https://forum.kirupa.com/t/xml-manipulation-with-jquery/320237 "2011-03-17T15:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [March 17, 2011, 3:59pm UTC](https://forum.kirupa.com/t/xml-manipulation-with-jquery/320237/1 "2011-03-17T15:59:06Z")

</div>

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.
