loads in mozilla but not IE

I am working on tree, The page open in mozilla but in IE it gives error,

I am loading xml with string



I get the syntax error at this line



tree.loadXMLString(<%= resultString %>);



Corejavaboy

IE XML engini has limitation, it can parse only UTF based XML from string, so you can’t use loadXMLString command with custom encoded XML.
If problem occurs with UTF encoded XML - please provide exact XML value.


I am using XSLT to generate the xml , the result xml from xsl is loaded to tree. I want the output xml to load to tree directly as a string (or stream).



I am loading to tree as follows, but in IE it gives syntax error at  tree.loadXMLString(<%= resultString %>);



Can you suggest any other method to load the xml directly



<%



XslTransformer xslTrans = new XslTransformer();



String resultString = xslTrans.XsTransformer();



resultString = resultString.substring(resultString.indexOf("<tree"));



System.out.println(“the result xml in string format is”+resultString);



%>



tree.loadXMLString(<%= resultString %>);



 



the xml that is loaded to tree is



 















no service udp-small-servers











!















uxx123456







































!











!











no ip domain-lookup











no service config











no ip finger











no ip http server











no snmp-server











!











ip subnet-zero











!











ip routing











no ip source-route











ip classless











!











no ip http server











!











logging facility local4











logging 193.67.79.190











!











no cdp run











!











line con 0











login authentication default











exec-timeout 0 0



























line aux 0











login authentication default











exec-timeout 0 0



























transport input all











line vty 0 4











login authentication default











exec-timeout 0 0



























!































































































































































































































































































































































































































 



Thanks



 

The XML which you output in described scenario corrupt script format , please try the next code

<%= resultString %>