Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Daniel on Jan 18, 2008 04:01
open dhtmlx forum
Error Loading XML in IE 6

hi everybody. Sorry to disturb, but I'm trying to create a small example loading from two XML files and IE is getting me nuts. Everthing is fine in Firefox, but the same tried in IE fails on loading XML (says: Error Type: LoadXML Description: Incorrect XML)

My two XML files are these:

tRaiz.xml
------------------------------------------


<?xml version="1.0"?>
<tabbar>
<row>
<tab id="a1" width='100px'>Activación <content id="html_1" /></tab>
<tab id="a2" width='100px'>Consultas</tab>
<tab id="a3" width='100px'>Informes</tab>
<tab id="a4" width='100px'>Mantenimientos</tab>
<tab id="a5" width='100px'>Utilidades</tab>
<tab id="a6" width='100px'>VPN</tab>
<tab id="a7" width='100px'>Ayuda</tab>        
</row>
</tabbar>


-------------------------------------

tAct.xml

------------------------------------
<?xml version="1.0"?>
<tabbar>
<row>
<tab id="b1" width='100px'>Recarga por factura</tab>
<tab id="b2" width='100px' selected="1">Multitarjeta</tab>
<tab id="b3" width='100px'>Productos</tab>
<tab id="b4" width='100px'>Cambio SIM a GUSIM</tab>
        <tab id="b5" width='100px'>Activacion</tab>
        <tab id="b6" width='100px'>Act.Externas</tab>
        <tab id="b7" width='100px'>Act.Qtal</tab>
        <tab id="b8" width='100px'>Portabilidad</tab>
        <tab id="b9" width='100px'>Cambio Sim a Nexus</tab>
        <tab id="b10" width='100px'>Servicios SUP.</tab>
</row>
</tabbar>

And finally, the html code

--------------------------------



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>For demo purpose only :: &1</title>
    <link rel='STYLESHEET' type='text/css' href='js
    /dhtmlxtabbar.css'>
    
    <script src='js/dhtmlxcommon.js'></script>
    <script src='js/dhtmlxtabbar.js'></script>
</head>

<body>
    
    
    
    <table>
        <tr>
            <td>
                <div id="a_tabbar" style="width:422; height:200;"></div>
                <div id="b_tabbar" style="width:412; height:100;"></div>
            </td>
    </table>
<br>

    <script>


            tabbar=new dhtmlXTabBar("a_tabbar","top");
tabbar.setImagePath('imgs/');
tabbar.loadXML("tRaiz.xml");

tabbar2=new dhtmlXTabBar("b_tabbar","top");
tabbar2.setImagePath('imgs/');
tabbar2.loadXML("tAct.xml");

    </script>

</body>
</html>

--------------------------------


May anybody helps me, because i have check everything thousand of times and i can't see anything :\. Thanks a lot in advance
Answer posted by Support on Jan 18, 2008 05:47
tRaiz.xml contains the next line

<tab id="a1" width='100px'>Activaciуn <content id="html_1" /></tab>

The <content id="html_1" /> is an instruction to find HTML container with ID==html_1 and attach it to tab in question, but your HTML code doesn't contain such element
So you need

a) remove not used content element
b) if it was set purposely - create necessary html container on page
Attachments (1)