I need your advices and explanation to understand the principles of working with XML.
I have this answer from server;
<?xml version="1.0" encoding="windows-1251"?>
<div style="" class="submenu" id="menu_item_ZdQZyvGsAL" data-type="submenu-item">
<span class="adm-submenu-item-arrow" style="width:72px;" onclick="showSubmenu()">
</span>
</div>
<div style="" class="submenu" id="menu_item_fGvdfvGsAL" data-type="submenu-item">
<span class="adm-submenu-item-arrow" style="width:72px;" onclick="showSubmenu()">
</span>
</div>
how i can put all this block of code into new
<div id="final_id"></div>
i can not work with responseText, want to use responseXML. Also i have permissioin to server and can add some special tag for generated XML for example
<?xml version="1.0" encoding="windows-1251"?>
<wrapper>
<div style="" class="submenu" id="menu_item_ZdQZyvGsAL" data-type="submenu-item">
<span class="adm-submenu-item-arrow" style="width:72px;" onclick="showSubmenu()">
</span>
</div>
<div style="" class="submenu" id="menu_item_fGvdfvGsAL" data-type="submenu-item">
<span class="adm-submenu-item-arrow" style="width:72px;" onclick="showSubmenu()">
</span>
</div>
</wrapper>
so i need all information between tags
<wrapper></wrapper>
to enter in
<div id="final_id"></div>
No comments:
Post a Comment