<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I am totally new to XQuery and I would like to know if it is suitable to use XQuery to transform html files into jQuery Treeview format.<br><br><br>Basically, what I would like to to is transform this:<br><br><li><br> <img src="../images/speaker-grey.gif"/><br> <font color="#7f7f7f"><br> <b>Root</b><br> </font><br> <ul><br> <li><br> <span class="folder">Order</span><br> <ul><br> <li><br> <span class="file">id = 1234</span><br> </li><br> <li><br> <span class="file">type = order.cancel</span><br> </li><br> <li><br> <span class="folder">Parameter</span><br> <ul><br> <li><br> <span class="file">id = 5678</span><br> </li><br> </ul><br> </li><br> <li><br> <span class="folder">Item</span><br> <ul><br> <li><br> <span class="file">id = 910</span><br> </li><br> <li><br> <span class="file">type = access</span><br> </li><br> </ul><br> </li><br> </ul><br> </li><br> </ul><br></li><br><br><br><br>.. into this:<br><br><ul class="filetree treeview"><br> <li class="expandable lastExpandable"><br> <div class="hitarea expandable-hitarea lastExpandable-hitarea"/><br> <img src="../images/speaker-grey.gif"/><br> <font color="#7f7f7f"><br> <b>Root</b><br> </font><br> <ul style="display: none;"><br> <li class="collapsable lastCollapsable"><br> <div class="hitarea collapsable-hitarea lastCollapsable-hitarea"/><br> <span class="folder">Order</span><br> <ul><br> <li><br> <span class="file">id = 1234</span><br> </li><br> <li><br> <span class="file">type = order.cancel</span><br> </li><br> <li class="collapsable"><br> <div class="hitarea collapsable-hitarea"/><br> <span class="folder">Parameter</span><br> <ul><br> <li class="last"><br> <span class="file">id = 5678</span><br> </li><br> </ul><br> </li><br> <li class="collapsable lastCollapsable"><br> <div class="hitarea collapsable-hitarea lastCollapsable-hitarea"/><br> <span class="folder">Item</span><br> <ul><br> <li><br> <span class="file">id = 910</span><br> </li><br> <li class="last"><br> <span class="file">type = access</span><br> </li><br> </ul><br> </li><br> </ul><br> </li><br> </ul><br> </li><br></ul><br><br><br>This the structure of this jQuery Treeview:<br><br>Root<br> Order<br> id = 1234<br> type = order.cancel<br> Parameter<br> id = 5678<br> Item<br> id = 910<br> type = access<br><br><br>Any ideas how to do this are highly appreciated!<br><br /><hr />Connect to the next generation of MSN Messenger <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>