需求描述不清楚,xml文件表达有误.你问问题还嫌麻烦的话就不要问好了,回答的人更嫌麻烦.话说多了,默念一百遍:做人要厚道! sorry啊,飘过了....

解决方案 »

  1.   

    在IE中,可以把xml作为table的数据源的,直接显示出来
    DATASRC Attribute | dataSrc Property  Internet Development Index --------------------------------------------------------------------------------Sets or retrieves the source of the data for data binding.SyntaxHTML <ELEMENT DATASRC = sID... >  
    Scripting object.dataSrc [ = sID ] Possible ValuessID String that specifies or receives the identifier of the data source. The property is read/write. The property has no default value.Expressions can be used in place of the preceding value(s), as of Microsoft&reg; Internet Explorer 5. For more information, see About Dynamic Properties.ResTabular and single-valued data consumers use the dataSrc property to specify a binding. The property takes a string that corresponds to the unique identifier of a data source object (DSO) on the page. The string must be prefixed by a number sign (#).When the dataSrc property is applied to a tabular data consumer, the entire data set is repeated by the consuming elements.When the dataSrc property is applied to a table, any contained single-valued consumer objects that specify a dataFld property are repeated for each record in the supplied data set. To complete the binding, the binding agent interrogates the enclosing table for its data source. A tabular data consumer contained within another tabular data consumer (table) must specify an explicit dataSrc.ExampleIn this example, a text box is bound to the customer_name field of a data source object with an ID of "customer". Because the text box is located within a data-bound table, the text box is repeated to display each of the records provided by the data source.<TABLE DATASRC="#customer">
    <TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"><TD><TR>
    </TABLE>
    Standards InformationThere is no public standard that applies to this property. 
      

  2.   

    我的意思是用js解析一个不规则的xml文件,将其用表格将xml树中各节点元素按照
    a______
    _______b
    ___________c
    ___________d
    _______e
    ___________f
    ___________g
    _______________h
    __________________i
    __________________j
    _______k
    ____________l如上所示:(以下指示举例,元素并不是固定这么多的)
    a 的子元素有b,e,k
    b的子元素有c,d
    e的子元素有f,g
    k的字元素有l
    然后g的字元素是h
    h的字元素是i ,j
    html中的效果就是类似如上图中没有下划线的布局
      

  3.   

    树中元素较多,
    需要使用递归来得到html字符串来显示 到页面上
      

  4.   

    答案就在 ASP.NET 2.0 TreeView 编译后的 HTML 页面中。读懂哪个结构你就知道该怎么做了!
      

  5.   

    可我是用js解析,
    .net 我不熟啊