I have an xml:\[code\]<sitemapnode><node id="1"/><node id="2"/><node id="3"/><node id="4"/><node id="5"/><node id="6"/><node id="7"/><node id="8"/></sitemapnode>\[/code\]I want to convert this into an html that looks something like;\[code\]<div> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul></div><div> <ul> <li>5</li> <li>6</li> <li>7</li> <li>8</li> </ul></div>\[/code\]How do I iterate through all nodes and give divs and uls for each half of them separately?? Also if the number of nodes is odd, then ceiling can be done after halfing the number of nodes for first half. I am grappling with this since 3 days. And have yet not found any solution. Please Please Please help...