xmlÎļþÔõôÒýÈëµ½Ò³Ãæ£¬ÔõôÌí¼ÓÁ¬½Ó¡£
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE treeview SYSTEM "treeview.dtd">
<?xml-stylesheet type="text/xsl" href="treeview.xslt"?>
<treeview title="ÏîÄ¿ÐͺŹÜÀí" treeViewJsFile="treeview.js " cssFile="treeview.css " jsFile="script.js" imgPath="Icon">
<folder checkbox="false" title="ȨÏÞ¹ÜÀí" img="folder.gif" code="1" expanded="false" >
<folder checkbox="false" title="Óû§¹ÜÀí" code="3" img="folder.gif">
<leaf checkbox="false" title="Ìí¼ÓÓû§" code="7" img="leaf.gif" />
<leaf checkbox="false" title="²éѯÓû§" code="8" img="leaf.gif" />
</folder>
<folder checkbox="false" title="½ÅÉ«¹ÜÀí" img="folder.gif" code="1" expanded="false" >
<leaf checkbox="false" title="Ìí¼Ó½ÅÉ«" code="4" img="leaf.gif" />
<leaf checkbox="false" title=" ²éѯ½ÅÉ«" code="5" img="leaf.gif" />
</folder>
</folder>
</treeview>
Õâ¸öÊÇxmlÎļ
Ïà¹ØÎÊ´ð£º
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÒÔÏ´úÂëÔÚIEÏÂÊÇ¿ÉÒÔÕý³££¬µ«ÊÇÓÃNETBOX·â×°¾Í²»ÐÐÁË£¬ÔËÐе½ºìÉ«µÄµØ·½¾Í³ö´íÁË£¬ËµÈ±ÉÙ¶ÔÏñ£¬ÇëÎÊÔõôÑùÐ޸ġ£
JScript code:
//////////////////// AJAXÀà////////////////
function getxml ......
ÏëÖªµÀÓÃdataset¶ÁдXMLÊÇÔõô°ìµ½µÄ£¬¶øÇÒÔõô´æÈëÊý¾Ý¿â£¿
ÓÃXML¶ÁдÓÖÔõôÄÜʵÏÖ£¿
Çë¸÷λ´óϺ°ï¸öæ~~~£¡
DataSet set = new DataSet();
set.ReadXml()
set.WriteXml
public static DataSet Con ......
XMLÈç
XML code:
<? xml version="1.0" ?>
<root>
<P>PÎı¾
<c1>c1±êÌâ<c1/>
<c1>c2±êÌâ<c1/>
</P>
</root>
......
HTML code:
<div id="tessx">
<ALEXA VER="0.9" URL="163.com/" HOME="0" AID="=">
<RLS PREFIX="http://" more="79" ......