开发者

HTML UL Menu from XML

i am receiving xml structured data which is not nested and I need to create UL menu out of it. Data is receiver using .ajax jquery .. please for any idea. Even if I fix output of XML i don't know how to achive this.

Structure of XML (sample values) :

<data id="1">
   <skItem>Food</skItem>
   <psItem>Item1 </psItem>
   <vssItem>value </vssItem>
</data>

<data id="2">
   <skItem>Food</skItem>
   <psItem>Item2 </psItem>
   <vssItem>value2 </vssItem>
</data>

<data id="3">
 开发者_如何转开发  <skItem>Food</skItem>
   <psItem>Itee3 </psItem>
   <vssItem>value </vssItem>
</data>

<data id="4">
   <skItem>Car</skItem>
   <psItem>Item2 </psItem>
   <vssItem>value </vssItem>
</data>


This looks like exactly what you need:

http://net.tutsplus.com/tutorials/javascript-ajax/use-jquery-to-retrieve-data-from-an-xml-file/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜