Допустим, у меня есть этот XML
<recipes>
<pudate>2011-11-01</pubdate>
<totalNumberOfResults>6</totalNumberOfResults>
<recipe>
<title>Ham And Cheese Omlet Roll Recipe</title>
<href>http://www.grouprecipes.com/38722/ham-and-cheese-omlet-roll.html</href>
<ingredients>cheddar cheese, dijon mustard, eggs, flour, milk, cream cheese, salt, green onion</ingredients>
</recipe>
<recipe>
<title>Egg Noodle Omlet Recipe</title>
<href>http://www.grouprecipes.com/63652/egg-noodle-omlet.html</href>
<ingredients>bacon, cheese, eggs, noodles, onions</ingredients>
</recipe>
<recipe>
<title>Sea Food Omlet Recipe</title>
<href>http://www.grouprecipes.com/8941/sea-food-omlet.html</href>
<ingredients>butter, crab meat, green onion, cheese, salt, capers</ingredients>
</recipe>
<recipe>
<title>French Fry - Tater Tot Omlet Recipe</title>
<href>http://www.grouprecipes.com/20924/french-fry---tater-tot-omlet.html</href>
<ingredients>eggs, french fries, salt, butter</ingredients>
</recipe>
</recipes>
Мне нужна структура из этого, подобная этой
/recipes/pubdate
/recipes/totalNumbeOfResults
/recipes/recipe/title
/recipes/recipe/href
/recipes/recipe/ingredients
Я думаю, что это должно быть сделано с использованием рекурсивной функции.Пожалуйста, помогите.