xiaokedou 发表于 2005-12-26 19:24

[转载]

<P >以下为一个<FONT face="Times New Roman">XML</FONT>文件,请画出其树形结构图:</P>
<P ><FONT face="Times New Roman">&lt;?xml version="1.0" standalone="yes"?&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;class&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;student&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;No&gt;001         &lt;/No&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;name&gt;zhang      &lt;/name&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;mark&gt;  </FONT></P>
<P ><FONT face="Times New Roman">&lt;chinese&gt; 80 &lt;/chinese&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;math&gt; 90&lt;/math&gt; &lt;/mark&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;/student&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;student&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;No&gt;002         &lt;/No&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;name&gt;liu    &lt;/name&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;mark&gt; </FONT></P>
<P ><FONT face="Times New Roman">&lt;chinese&gt; 90 &lt;/chinese&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;math&gt; 75&lt;/math&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;/mark&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;/student&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;student&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;No&gt;003         &lt;/No&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;name&gt;wang    &lt;/name&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;mark&gt;  </FONT></P>
<P ><FONT face="Times New Roman">&lt;chinese&gt; 59 &lt;/chinese&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;math&gt; 85&lt;/math&gt; &lt;/mark&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;/student&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;student&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;No&gt;004         &lt;/No&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;name&gt;chen      &lt;/name&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;mark&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;chinese&gt; 85 &lt;/chinese&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;math&gt; 95&lt;/math&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;/mark&gt;</FONT></P>
<P ><FONT face="Times New Roman">  &lt;/student&gt;</FONT></P>
<P ><FONT face="Times New Roman"> &lt;/class&gt;</FONT></P>


页: [1]

编程论坛