[根据名称获取Element子节点]
<p><strong>方法签名:</strong> </p>
<p><code>getChildByName(element, name)</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>根据名称获取element的子节点</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">element</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">object</td>
<td>Elementt对象</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>节点名</td>
</tr>
</tbody>
</table>
<p><strong>参数传入示例</strong></p>
<pre><code>###### element:
&lt;root&gt;
&lt;t1 count=2 totalCount=2&gt;
&lt;row&gt;
&lt;b2&gt;a&lt;/b2&gt;
&lt;b1&gt;1&lt;/b1&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;b2&gt;b&lt;/b2&gt;
&lt;b1&gt;1&lt;/b1&gt;
&lt;/row&gt;
&lt;/t1&gt;
&lt;t2 count=1 totalCount=1&gt;
&lt;row&gt;
&lt;b2&gt;c&lt;/b2&gt;
&lt;b1&gt;2&lt;/b1&gt;
&lt;/row&gt;
&lt;/t2&gt;
&lt;/root&gt;
###### name: t2</code></pre>
<p><strong>函数调用示例</strong></p>
<pre><code>Element root = getRootElement(document);
if(root != null){
Element e = getChildByName(root, &quot;t2&quot;); //获取根节点下节点名为t2的子节点
if(e != null){
println &quot;节点&quot;+e.toString();
}
}
</code></pre>
<p><strong>函数返回说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Element</td>
<td>返回对应子节点对象</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>###### 示例中e:
&lt;t2 count=1 totalCount=1&gt;
&lt;row&gt;
&lt;b2&gt;c&lt;/b2&gt;
&lt;b1&gt;2&lt;/b1&gt;
&lt;/row&gt;
&lt;/t2&gt;
</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>
</li>
</ul>